From 19e327607f93c2cba819ad6cca771944375f6d9e Mon Sep 17 00:00:00 2001 From: Slava Semushin Date: Sun, 30 Aug 2009 02:30:13 +0700 Subject: [PATCH] Tokenizer::simplifyConditionOperator(): change return type to void. No functional change. --- src/tokenize.cpp | 4 +--- src/tokenize.h | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/tokenize.cpp b/src/tokenize.cpp index e103e262e..ea3660517 100644 --- a/src/tokenize.cpp +++ b/src/tokenize.cpp @@ -1915,9 +1915,8 @@ void Tokenizer::simplifyDoWhileAddBraces() } } -bool Tokenizer::simplifyConditionOperator() +void Tokenizer::simplifyConditionOperator() { - bool ret = false; int parlevel = 0; for (Token *tok = _tokens; tok; tok = tok->next()) { @@ -1955,7 +1954,6 @@ bool Tokenizer::simplifyConditionOperator() Token::createMutualLinks(tok->tokAt(-10), tok->tokAt(-8)); } } - return ret; } bool Tokenizer::simplifyConditions() diff --git a/src/tokenize.h b/src/tokenize.h index 66f6d60e5..9089de5ce 100644 --- a/src/tokenize.h +++ b/src/tokenize.h @@ -214,10 +214,8 @@ private: /** * Simplify the operator "?:" - * @return true if something is modified - * false if nothing is done. */ - bool simplifyConditionOperator(); + void simplifyConditionOperator(); /** Simplify conditions * @return true if something is modified