Fix Cppcheck warnings. Remove redundant null pointer check.

This commit is contained in:
Daniel Marjamäki 2017-04-01 10:51:45 +02:00
parent 279b66003b
commit 1dbf485e02
1 changed files with 1 additions and 1 deletions

View File

@ -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;