From 85b6495cce44f28643c62c4df4b3a962ee2c1896 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Thu, 23 Jan 2014 19:40:47 +0100 Subject: [PATCH] value flow: fixed comments --- gui/translationhandler.cpp | 3 +-- lib/valueflow.cpp | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/gui/translationhandler.cpp b/gui/translationhandler.cpp index 0ca39a408..cb77f155d 100644 --- a/gui/translationhandler.cpp +++ b/gui/translationhandler.cpp @@ -178,8 +178,7 @@ int TranslationHandler::GetLanguageIndexByCode(const QString &code) const if (mTranslations[i].mCode == code) { index = i; break; - } - else if (mTranslations[i].mCode == code.left(2)) { + } else if (mTranslations[i].mCode == code.left(2)) { index = i; break; } diff --git a/lib/valueflow.cpp b/lib/valueflow.cpp index fd350ffe0..f3a674c0d 100644 --- a/lib/valueflow.cpp +++ b/lib/valueflow.cpp @@ -443,7 +443,7 @@ static void valueFlowAfterAssign(TokenList *tokenlist, ErrorLogger *errorLogger, if ((tok->str() != "=") || (tok->astParent())) continue; - // Rhs should be a variable + // Lhs should be a variable if (!tok->astOperand1() || !tok->astOperand1()->isName()) continue; unsigned int varid = tok->astOperand1()->varId(); @@ -460,7 +460,7 @@ static void valueFlowAfterAssign(TokenList *tokenlist, ErrorLogger *errorLogger, } } - // Lhs values.. + // Rhs values.. if (!tok->astOperand2() || tok->astOperand2()->values.empty()) continue; std::list values = tok->astOperand2()->values;