From afe52fa9f2d0594c794e9b6e988d11687a399ad3 Mon Sep 17 00:00:00 2001 From: Pete Johns Date: Wed, 13 Oct 2010 21:19:18 +1100 Subject: [PATCH] Fixed MSVC++ compiler warning (pointers are not bools) --- lib/checkother.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/checkother.cpp b/lib/checkother.cpp index 3dae17ab0..25c5bcd58 100644 --- a/lib/checkother.cpp +++ b/lib/checkother.cpp @@ -3885,7 +3885,7 @@ bool CheckOther::isIdentifierObjectType(const Token * const tok) } const std::string classDefnOrDecl = std::string("class|struct ") + identifier + " [{:;]"; - const bool result = Token::findmatch(_tokenizer->tokens(), classDefnOrDecl.c_str()); + const bool result = Token::findmatch(_tokenizer->tokens(), classDefnOrDecl.c_str()) != NULL; isClassResults.insert(std::make_pair(identifier, result)); return result; }