Skip to content

Commit 0dcee6e

Browse files
committed
programmemory.cpp: avoid unnecessary copy in ProgramMemoryState::get() [skip ci]
1 parent 69b847f commit 0dcee6e

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
@@ -555,7 +555,7 @@ ProgramMemory ProgramMemoryState::get(const Token* tok, const Token* ctx, const
555555
} else {
556556
local.removeModifiedVars(ctx);
557557
}
558-
return local.state;
558+
return std::move(local.state);
559559
}
560560

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

0 commit comments

Comments
 (0)