Remove bitwise-or abuse

This commit is contained in:
Dmitry-Me 2015-03-23 13:30:05 +03:00
parent 19f770e41b
commit 7017b051fe
1 changed files with 1 additions and 1 deletions

View File

@ -7831,7 +7831,7 @@ void Tokenizer::simplifyEnum()
const Token *prev = tok2->previous();
bool type = false;
while (prev && (prev->isName() || Token::Match(prev, "*|&|::"))) {
type |= (Token::Match(prev, "%type% !!::") && !Token::Match(prev, "throw|return"));
type = type || ((Token::Match(prev, "%type% !!::") && !Token::Match(prev, "throw|return")));
prev = prev->previous();
}
if (type && (!prev || Token::Match(prev, "[;{}]"))) {