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

Correction for 241f585d34 commit.

No functional change.
This commit is contained in:
Slava Semushin 2009-09-13 14:35:02 +07:00
parent c0ca375ef7
commit eb6b5cfce6
2 changed files with 2 additions and 8 deletions

View File

@ -3699,9 +3699,8 @@ void Tokenizer::syntaxError(const Token *tok, char c)
}
bool Tokenizer::simplifyMathFunctions()
void Tokenizer::simplifyMathFunctions()
{
bool result = false;
for (Token *tok = _tokens; tok; tok = tok->next())
{
if (Token::Match(tok, "atol ( %str% )"))
@ -3730,11 +3729,8 @@ bool Tokenizer::simplifyMathFunctions()
// Delete remaining )
tok->deleteNext();
result = true;
}
}
return result;
}
void Tokenizer::simplifyComma()

View File

@ -281,10 +281,8 @@ private:
/**
* Simplify e.g. 'atol("0")' into '0'
* @return true if modifications to token-list are done.
* false if no modifications are done.
*/
bool simplifyMathFunctions();
void simplifyMathFunctions();
void insertTokens(Token *dest, const Token *src, unsigned int n);