cppcheck: Minor bug fix
This commit is contained in:
parent
47a7c915fa
commit
327d09502a
|
@ -272,7 +272,7 @@ void CppCheck::checkFile(const std::string &code, const char FileName[])
|
|||
checkMemoryLeak.CheckMemoryLeak();
|
||||
|
||||
// Check that all class constructors are ok.
|
||||
if (ErrorMessage::noConstructor(_settings) || ErrorMessage::uninitVar(_settings))
|
||||
if (ErrorMessage::noConstructor(_settings) && ErrorMessage::uninitVar(_settings))
|
||||
checkClass.constructors();
|
||||
|
||||
// Check that all base classes have virtual destructors
|
||||
|
|
Loading…
Reference in New Issue