Tokenizer::simplifyConditionOperator(): change return type to void.
No functional change.
This commit is contained in:
parent
33ee1b8d98
commit
19e327607f
|
@ -1915,9 +1915,8 @@ void Tokenizer::simplifyDoWhileAddBraces()
|
|||
}
|
||||
}
|
||||
|
||||
bool Tokenizer::simplifyConditionOperator()
|
||||
void Tokenizer::simplifyConditionOperator()
|
||||
{
|
||||
bool ret = false;
|
||||
int parlevel = 0;
|
||||
for (Token *tok = _tokens; tok; tok = tok->next())
|
||||
{
|
||||
|
@ -1955,7 +1954,6 @@ bool Tokenizer::simplifyConditionOperator()
|
|||
Token::createMutualLinks(tok->tokAt(-10), tok->tokAt(-8));
|
||||
}
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
bool Tokenizer::simplifyConditions()
|
||||
|
|
|
@ -214,10 +214,8 @@ private:
|
|||
|
||||
/**
|
||||
* Simplify the operator "?:"
|
||||
* @return true if something is modified
|
||||
* false if nothing is done.
|
||||
*/
|
||||
bool simplifyConditionOperator();
|
||||
void simplifyConditionOperator();
|
||||
|
||||
/** Simplify conditions
|
||||
* @return true if something is modified
|
||||
|
|
Loading…
Reference in New Issue