CheckOther: Code cleanup. Use %oror%

This commit is contained in:
Daniel Marjamäki 2011-04-10 11:52:12 +02:00
parent 76679255a3
commit f284c3a11f
1 changed files with 1 additions and 4 deletions

View File

@ -146,10 +146,7 @@ void CheckOther::clarifyCondition()
{
if (tok2->str() == "(" || tok2->str() == "[")
tok2 = tok2->link();
else if (tok2->str() == "||" ||
tok2->str() == "&&" ||
tok2->str() == "?" ||
tok2->str() == ")")
else if (Token::Match(tok2, "&&|%oror%|?|)"))
break;
else if (Token::Match(tok2, "<|<=|==|!=|>|>= %num% )"))
{