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

No functional change.
This commit is contained in:
Slava Semushin 2009-08-30 02:28:39 +07:00
parent 8efacf5dc3
commit 33ee1b8d98
2 changed files with 2 additions and 5 deletions

View File

@ -2968,9 +2968,8 @@ bool Tokenizer::simplifyKnownVariables()
}
bool Tokenizer::elseif()
void Tokenizer::elseif()
{
bool ret = false;
for (Token *tok = _tokens; tok; tok = tok->next())
{
if (!Token::simpleMatch(tok, "else if"))
@ -2989,14 +2988,12 @@ bool Tokenizer::elseif()
{
tok->insertToken("{");
tok2->insertToken("}");
ret = true;
Token::createMutualLinks(tok->next(), tok2->next());
break;
}
}
}
}
return ret;
}

View File

@ -197,7 +197,7 @@ private:
void simplifyGoto();
/** Simplify "if else" */
bool elseif();
void elseif();
std::vector<const Token *> _functionList;