From 1dbf485e028b92bc20448a1a4ab66eb462f3f5ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sat, 1 Apr 2017 10:51:45 +0200 Subject: [PATCH] Fix Cppcheck warnings. Remove redundant null pointer check. --- lib/symboldatabase.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/symboldatabase.cpp b/lib/symboldatabase.cpp index 01130a5b0..d8f181312 100644 --- a/lib/symboldatabase.cpp +++ b/lib/symboldatabase.cpp @@ -4031,7 +4031,7 @@ const Function* Scope::findFunction(const Token *tok, bool requireConst) const } // check that function argument type is not mismatching - else if (funcarg && funcarg->isReference() && arguments[j]->str() == "&") { + else if (funcarg->isReference() && arguments[j]->str() == "&") { // can't match so remove this function from possible matches matches.erase(matches.begin() + i); erased = true;