Skip to content

Commit b617c74

Browse files
committed
programmemory.cpp: avoid unnecessary copy in ProgramMemoryState::get() [skip ci]
1 parent af4bd50 commit b617c74

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/programmemory.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,7 @@ ProgramMemory ProgramMemoryState::get(const Token* tok, const Token* ctx, const
580580
} else {
581581
local.removeModifiedVars(ctx);
582582
}
583-
return local.state;
583+
return std::move(local.state);
584584
}
585585

586586
ProgramMemory getProgramMemory(const Token* tok, const Token* expr, const ValueFlow::Value& value, const Settings& settings)

0 commit comments

Comments
 (0)