Tokenizer::simplifyIfNotNull(): change return type to void.

No functional change.
This commit is contained in:
Slava Semushin 2009-08-30 02:21:06 +07:00
parent 3f905da9c6
commit 80a305a2ce
2 changed files with 2 additions and 8 deletions

View File

@ -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;
}

View File

@ -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 "&&"