From eb6b5cfce6e1912bd9ab05cc464dd68629e12fdb Mon Sep 17 00:00:00 2001 From: Slava Semushin Date: Sun, 13 Sep 2009 14:35:02 +0700 Subject: [PATCH] Tokenizer::simplifyMathFunctions(): change return type to void. Correction for 241f585d34cb6f645d112c5e0cc54fe852c21c3b commit. No functional change. --- src/tokenize.cpp | 6 +----- src/tokenize.h | 4 +--- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/src/tokenize.cpp b/src/tokenize.cpp index 18eac1b2a..9d8e9035f 100644 --- a/src/tokenize.cpp +++ b/src/tokenize.cpp @@ -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() diff --git a/src/tokenize.h b/src/tokenize.h index e50397502..0fb66852f 100644 --- a/src/tokenize.h +++ b/src/tokenize.h @@ -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);