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

No functional change.
This commit is contained in:
Slava Semushin 2009-08-30 02:37:15 +07:00
parent 19e327607f
commit 18fd2528f8
2 changed files with 2 additions and 6 deletions

View File

@ -2203,9 +2203,8 @@ void Tokenizer::simplifyCasts()
} }
bool Tokenizer::simplifyFunctionParameters() void Tokenizer::simplifyFunctionParameters()
{ {
bool ret = false;
int indentlevel = 0; int indentlevel = 0;
for (Token *tok = _tokens; tok; tok = tok->next()) for (Token *tok = _tokens; tok; tok = tok->next())
{ {
@ -2265,7 +2264,6 @@ bool Tokenizer::simplifyFunctionParameters()
// Replace "x" with "int x" or similar // Replace "x" with "int x" or similar
Token::replace(argumentNames[tok->str()], start, tok); Token::replace(argumentNames[tok->str()], start, tok);
ret = true;
tok = temp; tok = temp;
start = tok; start = tok;
} }
@ -2288,8 +2286,6 @@ bool Tokenizer::simplifyFunctionParameters()
++indentlevel; ++indentlevel;
} }
} }
return ret;
} }

View File

@ -258,7 +258,7 @@ private:
* Simplify functions like "void f(x) int x; {" * Simplify functions like "void f(x) int x; {"
* into "void f(int x) {" * into "void f(int x) {"
*/ */
bool simplifyFunctionParameters(); void simplifyFunctionParameters();
/** /**
* Simplify namespaces by removing them, e.g. * Simplify namespaces by removing them, e.g.