Code cleanup. Omit redundant check.
This commit is contained in:
parent
418c2e51a0
commit
828fdb6c47
|
@ -10226,7 +10226,7 @@ void Tokenizer::removeUnnecessaryQualification()
|
||||||
std::vector<Space> classInfo;
|
std::vector<Space> classInfo;
|
||||||
for (Token *tok = list.front(); tok; tok = tok->next()) {
|
for (Token *tok = list.front(); tok; tok = tok->next()) {
|
||||||
if (Token::Match(tok, "class|struct|namespace %type% :|{") &&
|
if (Token::Match(tok, "class|struct|namespace %type% :|{") &&
|
||||||
(!tok->previous() || (tok->previous() && tok->previous()->str() != "enum"))) {
|
(!tok->previous() || tok->previous()->str() != "enum")) {
|
||||||
Space info;
|
Space info;
|
||||||
info.isNamespace = tok->str() == "namespace";
|
info.isNamespace = tok->str() == "namespace";
|
||||||
tok = tok->next();
|
tok = tok->next();
|
||||||
|
|
Loading…
Reference in New Issue