cppcheck: Minor bug fix

This commit is contained in:
Daniel Marjamäki 2009-01-10 19:24:23 +00:00
parent 47a7c915fa
commit 327d09502a
1 changed files with 1 additions and 1 deletions

View File

@ -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