Skip to content

Commit c622bee

Browse files
committed
valueflow.cpp: avoid unnecessary copy in valueFlowAfterAssign()
1 parent 29b1daa commit c622bee

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/valueflow.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4125,7 +4125,7 @@ static void valueFlowAfterAssign(TokenList &tokenlist,
41254125
continue;
41264126
ids.insert(value.tokvalue->exprId());
41274127
}
4128-
for (ValueFlow::Value value : values) {
4128+
for (ValueFlow::Value& value : values) {
41294129
if (!value.isSymbolicValue())
41304130
continue;
41314131
const Token* expr = value.tokvalue;

0 commit comments

Comments
 (0)