value flow: fixed comments

This commit is contained in:
Daniel Marjamäki 2014-01-23 19:40:47 +01:00
parent 50d0aa1870
commit 85b6495cce
2 changed files with 3 additions and 4 deletions

View File

@ -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;
}

View File

@ -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<ValueFlow::Value> values = tok->astOperand2()->values;