Revert "Remove bitwise-or abuse"

This reverts commit 7017b051fe.
This commit is contained in:
Daniel Marjamäki 2015-03-24 08:07:15 +01:00
parent 9a1b543c07
commit a3a5c74bbf
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 = type || ((Token::Match(prev, "%type% !!::") && !Token::Match(prev, "throw|return")));
type |= (Token::Match(prev, "%type% !!::") && !Token::Match(prev, "throw|return"));
prev = prev->previous();
}
if (type && (!prev || Token::Match(prev, "[;{}]"))) {