From 327d09502aa74ade9193394b592795f89eea317f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sat, 10 Jan 2009 19:24:23 +0000 Subject: [PATCH] cppcheck: Minor bug fix --- src/cppcheck.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cppcheck.cpp b/src/cppcheck.cpp index c01912800..6ecd7f2b6 100644 --- a/src/cppcheck.cpp +++ b/src/cppcheck.cpp @@ -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