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())
|
for (Token *tok = _tokens; tok; tok = tok->next())
|
||||||
{
|
{
|
||||||
if (Token::Match(tok, "atol ( %str% )"))
|
if (Token::Match(tok, "atol ( %str% )"))
|
||||||
|
@ -3730,11 +3729,8 @@ bool Tokenizer::simplifyMathFunctions()
|
||||||
|
|
||||||
// Delete remaining )
|
// Delete remaining )
|
||||||
tok->deleteNext();
|
tok->deleteNext();
|
||||||
result = true;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return result;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Tokenizer::simplifyComma()
|
void Tokenizer::simplifyComma()
|
||||||
|
|
|
@ -281,10 +281,8 @@ private:
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Simplify e.g. 'atol("0")' into '0'
|
* 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);
|
void insertTokens(Token *dest, const Token *src, unsigned int n);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue