Fix Cppcheck warning
This commit is contained in:
parent
9dc085c3ec
commit
70fc2a78e5
|
@ -2050,7 +2050,7 @@ static bool isOperator(const Token *tokenDef) {
|
||||||
return false;
|
return false;
|
||||||
if (tokenDef->isOperatorKeyword())
|
if (tokenDef->isOperatorKeyword())
|
||||||
return true;
|
return true;
|
||||||
const std::string name = tokenDef->str();
|
const std::string &name = tokenDef->str();
|
||||||
return name.size() > 8 && name.compare(0,8,"operator")==0 && std::strchr("+-*/%&|~^<>!=[(", name[8]);
|
return name.size() > 8 && name.compare(0,8,"operator")==0 && std::strchr("+-*/%&|~^<>!=[(", name[8]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue