Fix Cppcheck warning

This commit is contained in:
Daniel Marjamäki 2020-11-01 18:04:13 +01:00
parent 9dc085c3ec
commit 70fc2a78e5
1 changed files with 1 additions and 1 deletions

View File

@ -2050,7 +2050,7 @@ static bool isOperator(const Token *tokenDef) {
return false;
if (tokenDef->isOperatorKeyword())
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]);
}