diff --git a/lib/checkuninitvar.cpp b/lib/checkuninitvar.cpp index e4d982d3a..e2f02b915 100644 --- a/lib/checkuninitvar.cpp +++ b/lib/checkuninitvar.cpp @@ -703,7 +703,7 @@ private: } // function call via function pointer - if (Token::Match(&tok, "( * %var% ) (") || + if (Token::Match(&tok, "( * %var% ) (") || (Token::Match(&tok, "( *| %var% .|::") && Token::Match(tok.link()->tokAt(-2), ".|:: %var% ) ("))) { // is the variable passed as a parameter to some function? unsigned int parlevel = 0; diff --git a/test/testconstructors.cpp b/test/testconstructors.cpp index 927b47c34..a4298b0c7 100644 --- a/test/testconstructors.cpp +++ b/test/testconstructors.cpp @@ -1045,8 +1045,7 @@ private: ASSERT_EQUALS("[test.cpp:13]: (warning) Member variable 'Fred::ints' is not assigned a value in 'Fred::operator='\n", errout.str()); } - void explicit_constructor() - { + void explicit_constructor() { check("class Fred\n" "{\n" " Fred(int i);\n"