Tokenizer::simplifyIfNotNull(): change return type to void.
No functional change.
This commit is contained in:
parent
3f905da9c6
commit
80a305a2ce
|
@ -2746,9 +2746,8 @@ void Tokenizer::simplifyIfNot()
|
|||
}
|
||||
|
||||
|
||||
bool Tokenizer::simplifyIfNotNull()
|
||||
void Tokenizer::simplifyIfNotNull()
|
||||
{
|
||||
bool ret = false;
|
||||
for (Token *tok = _tokens; tok; tok = tok->next())
|
||||
{
|
||||
Token *deleteFrom = NULL;
|
||||
|
@ -2784,11 +2783,8 @@ bool Tokenizer::simplifyIfNotNull()
|
|||
{
|
||||
Token::eraseTokens(deleteFrom, deleteFrom->tokAt(3));
|
||||
tok = deleteFrom;
|
||||
ret = true;
|
||||
}
|
||||
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -150,10 +150,8 @@ private:
|
|||
/**
|
||||
* simplify if-not NULL..
|
||||
* Example: "if(0!=x);" => "if(x);"
|
||||
* @return true if something is modified
|
||||
* false if nothing is done.
|
||||
*/
|
||||
bool simplifyIfNotNull();
|
||||
void simplifyIfNotNull();
|
||||
|
||||
/**
|
||||
* Simplify the "not" and "and" keywords to "!" and "&&"
|
||||
|
|
Loading…
Reference in New Issue