Fix Cppcheck warnings. Remove redundant null pointer check.
This commit is contained in:
parent
279b66003b
commit
1dbf485e02
|
@ -4031,7 +4031,7 @@ const Function* Scope::findFunction(const Token *tok, bool requireConst) const
|
||||||
}
|
}
|
||||||
|
|
||||||
// check that function argument type is not mismatching
|
// 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
|
// can't match so remove this function from possible matches
|
||||||
matches.erase(matches.begin() + i);
|
matches.erase(matches.begin() + i);
|
||||||
erased = true;
|
erased = true;
|
||||||
|
|
Loading…
Reference in New Issue