Fix Match warning

This commit is contained in:
Daniel Marjamäki 2018-11-02 20:14:34 +01:00
parent 5de683ec49
commit 614a252704
1 changed files with 1 additions and 1 deletions

View File

@ -375,7 +375,7 @@ static void setTokenValue(Token* tok, const ValueFlow::Value &value, const Setti
if (value.isContainerSizeValue()) {
// .empty, .size, +"abc", +'a'
if (Token::Match(parent, "+")) {
if (parent->str() == "+") {
for (const ValueFlow::Value &value1 : parent->astOperand1()->values()) {
for (const ValueFlow::Value &value2 : parent->astOperand2()->values()) {
ValueFlow::Value result;