Use early continue
This commit is contained in:
parent
404eb6c746
commit
1bb1c4cc8e
|
@ -9766,7 +9766,8 @@ void Tokenizer::simplifyOperatorName()
|
|||
return;
|
||||
|
||||
for (Token *tok = list.front(); tok; tok = tok->next()) {
|
||||
if (tok->str() == "operator") {
|
||||
if (tok->str() != "operator")
|
||||
continue;
|
||||
// operator op
|
||||
std::string op;
|
||||
Token *par = tok->next();
|
||||
|
@ -9816,7 +9817,6 @@ void Tokenizer::simplifyOperatorName()
|
|||
if (!op.empty())
|
||||
tok->isOperatorKeyword(true);
|
||||
}
|
||||
}
|
||||
|
||||
if (mSettings->debugwarnings) {
|
||||
const Token *tok = list.front();
|
||||
|
|
Loading…
Reference in New Issue