Use early continue

This commit is contained in:
Daniel Marjamäki 2018-09-09 20:58:30 +02:00
parent 404eb6c746
commit 1bb1c4cc8e
1 changed files with 42 additions and 42 deletions

View File

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