diff --git a/lib/platform.h b/lib/platform.h index 3e316de8a..cd3b87213 100644 --- a/lib/platform.h +++ b/lib/platform.h @@ -133,7 +133,7 @@ namespace cppcheck { } long long unsignedCharMax() const { - return max_value(char_bit + 1); + return max_value(char_bit + 1); } long long signedCharMax() const { diff --git a/lib/symboldatabase.cpp b/lib/symboldatabase.cpp index 2d013c6c0..0e2016df5 100644 --- a/lib/symboldatabase.cpp +++ b/lib/symboldatabase.cpp @@ -3647,9 +3647,8 @@ const Enumerator * SymbolDatabase::findEnumerator(const Token * tok) const const std::string tokStr = tok->str(); - if (tokensThatAreNotEnumeratorValues.find(tokStr) != tokensThatAreNotEnumeratorValues.end()) - { - return nullptr; + if (tokensThatAreNotEnumeratorValues.find(tokStr) != tokensThatAreNotEnumeratorValues.end()) { + return nullptr; } // check for qualified name