Code cleanup. Omit redundant check.

This commit is contained in:
Dmitry-Me 2014-11-28 17:48:23 +01:00 committed by Daniel Marjamäki
parent 418c2e51a0
commit 828fdb6c47
1 changed files with 1 additions and 1 deletions

View File

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