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();
|
checkMemoryLeak.CheckMemoryLeak();
|
||||||
|
|
||||||
// Check that all class constructors are ok.
|
// Check that all class constructors are ok.
|
||||||
if (ErrorMessage::noConstructor(_settings) || ErrorMessage::uninitVar(_settings))
|
if (ErrorMessage::noConstructor(_settings) && ErrorMessage::uninitVar(_settings))
|
||||||
checkClass.constructors();
|
checkClass.constructors();
|
||||||
|
|
||||||
// Check that all base classes have virtual destructors
|
// Check that all base classes have virtual destructors
|
||||||
|
|
Loading…
Reference in New Issue