From 33ee1b8d98d4ecac1135994aa4655d48ab4c2222 Mon Sep 17 00:00:00 2001 From: Slava Semushin Date: Sun, 30 Aug 2009 02:28:39 +0700 Subject: [PATCH] Tokenizer::elseif(): change return type to void. No functional change. --- src/tokenize.cpp | 5 +---- src/tokenize.h | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/tokenize.cpp b/src/tokenize.cpp index 12135dda8..e103e262e 100644 --- a/src/tokenize.cpp +++ b/src/tokenize.cpp @@ -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; } diff --git a/src/tokenize.h b/src/tokenize.h index 17dfe7555..66f6d60e5 100644 --- a/src/tokenize.h +++ b/src/tokenize.h @@ -197,7 +197,7 @@ private: void simplifyGoto(); /** Simplify "if else" */ - bool elseif(); + void elseif(); std::vector _functionList;