Commit 22774581 authored by Ing. Jan Trávníček's avatar Ing. Jan Trávníček

fix some clang-tidy in SparseBoolVector

parent a89a3de3
......@@ -23,6 +23,7 @@ readability-*,\
-readability-braces-around-statements,\
-readability-else-after-return,\
-readability-misleading-indentation,\
-readability-uppercase-literal-suffix,\
"
WarningsAsErrors: '*'
HeaderFilterRegex: '.*/(src)/*'
......
......@@ -49,7 +49,7 @@ public:
};
ext::list < element > m_Data;
size_t m_Size;
size_t m_Size { 0 };
private:
static inline unsigned getMask ( size_t dist ) {
......@@ -60,7 +60,7 @@ private:
void packData ( ) {
size_t sizeWithin = m_Size % ( sizeof ( unsigned ) * BITS_IN_BYTE );
long long sizeBlocks = m_Size / ( sizeof ( unsigned ) * BITS_IN_BYTE ) + ( bool ) sizeWithin;
long long sizeBlocks = m_Size / ( sizeof ( unsigned ) * BITS_IN_BYTE ) + static_cast < unsigned > ( sizeWithin != 0 );
unsigned mask = getMask ( sizeWithin );
// crop by size
......@@ -100,7 +100,7 @@ private:
// --------------------------------------------------------------------------------------------------------------------------------------------------
public:
SparseBoolVector ( ) : m_Size ( 0 ) { }
SparseBoolVector ( ) = default;
SparseBoolVector ( const ext::vector < bool > & raw ) : m_Size ( 0 ) {
for ( bool boolean : raw ) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment