Omit repeated computations
This commit is contained in:
parent
56544ac936
commit
988de6422e
|
@ -526,9 +526,10 @@ void SymbolDatabase::createSymbolDatabaseFindAllScopes()
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Token::Match(tok, "= %any% ;")) {
|
if (Token::Match(tok, "= %any% ;")) {
|
||||||
function.isPure(tok->strAt(1) == "0");
|
const std::string& modifier = tok->strAt(1);
|
||||||
function.isDefault(tok->strAt(1) == "default");
|
function.isPure(modifier == "0");
|
||||||
function.isDelete(tok->strAt(1) == "delete");
|
function.isDefault(modifier == "default");
|
||||||
|
function.isDelete(modifier == "delete");
|
||||||
tok = tok->tokAt(2);
|
tok = tok->tokAt(2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue