value flow: fixed comments
This commit is contained in:
parent
50d0aa1870
commit
85b6495cce
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue