Skip to content

Commit 158c558

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)