Tokenizer::simplifyMathFunctions(): change return type to void.
Correction for 241f585d34
commit.
No functional change.
This commit is contained in:
parent
c0ca375ef7
commit
eb6b5cfce6
|
@ -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()
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue