SymbolDatabase::createSymbolDatabaseFindAllScopes(): simplify match pattern.
This commit is contained in:
parent
f2b2be2166
commit
af9b9595ce
|
@ -100,7 +100,7 @@ void SymbolDatabase::createSymbolDatabaseFindAllScopes()
|
|||
tok2 = tok2->link()->next();
|
||||
|
||||
// make sure we have valid code
|
||||
if (!tok2 || !Token::Match(tok2, "{|:")) {
|
||||
if (!Token::Match(tok2, "{|:")) {
|
||||
// check for qualified variable
|
||||
if (tok2 && tok2->next()) {
|
||||
if (tok2->next()->str() == ";")
|
||||
|
|
Loading…
Reference in New Issue