Skip to content

Commit 828fdb6

Browse files
Dmitry-Medanmar
authored andcommitted
Code cleanup. Omit redundant check.
1 parent 418c2e5 commit 828fdb6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/tokenize.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10226,7 +10226,7 @@ void Tokenizer::removeUnnecessaryQualification()
1022610226
std::vector<Space> classInfo;
1022710227
for (Token *tok = list.front(); tok; tok = tok->next()) {
1022810228
if (Token::Match(tok, "class|struct|namespace %type% :|{") &&
10229-
(!tok->previous() || (tok->previous() && tok->previous()->str() != "enum"))) {
10229+
(!tok->previous() || tok->previous()->str() != "enum")) {
1023010230
Space info;
1023110231
info.isNamespace = tok->str() == "namespace";
1023210232
tok = tok->next();

0 commit comments

Comments
 (0)