Skip to content

Commit 49c9b90

Browse files
committed
Fix
1 parent b9d4a8b commit 49c9b90

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/valueflow.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6892,11 +6892,11 @@ static void valueFlowContainerSize(const TokenList& tokenlist,
68926892
if (const Variable* var = func->getArgumentVar(nArg)) {
68936893
if (var->valueType() && var->valueType()->container && var->valueType()->container->size_templateArgNo < 0) {
68946894
std::vector<ValueFlow::Value> values = getInitListSize(tok, var->valueType(), settings, true);
6895-
ValueFlow::Value value;
6896-
value.valueType = ValueFlow::Value::ValueType::TOK;
6897-
value.tokvalue = tok;
6898-
value.setKnown();
6899-
values.push_back(std::move(value));
6895+
ValueFlow::Value tokValue;
6896+
tokValue.valueType = ValueFlow::Value::ValueType::TOK;
6897+
tokValue.tokvalue = tok;
6898+
tokValue.setKnown();
6899+
values.push_back(std::move(tokValue));
69006900

69016901
for (const ValueFlow::Value &value : values)
69026902
setTokenValue(tok, value, settings);

0 commit comments

Comments
 (0)