Skip to content

Commit 1dbf485

Browse files
committed
Fix Cppcheck warnings. Remove redundant null pointer check.
1 parent 279b660 commit 1dbf485

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/symboldatabase.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4031,7 +4031,7 @@ const Function* Scope::findFunction(const Token *tok, bool requireConst) const
40314031
}
40324032

40334033
// check that function argument type is not mismatching
4034-
else if (funcarg && funcarg->isReference() && arguments[j]->str() == "&") {
4034+
else if (funcarg->isReference() && arguments[j]->str() == "&") {
40354035
// can't match so remove this function from possible matches
40364036
matches.erase(matches.begin() + i);
40374037
erased = true;

0 commit comments

Comments
 (0)