SymbolDatabase::createSymbolDatabaseFindAllScopes(): simplify match pattern.

This commit is contained in:
Matthias Krüger 2018-01-01 04:21:30 +01:00
parent f2b2be2166
commit af9b9595ce
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ void SymbolDatabase::createSymbolDatabaseFindAllScopes()
tok2 = tok2->link()->next(); tok2 = tok2->link()->next();
// make sure we have valid code // make sure we have valid code
if (!tok2 || !Token::Match(tok2, "{|:")) { if (!Token::Match(tok2, "{|:")) {
// check for qualified variable // check for qualified variable
if (tok2 && tok2->next()) { if (tok2 && tok2->next()) {
if (tok2->next()->str() == ";") if (tok2->next()->str() == ";")