summaryrefslogtreecommitdiffstats
path: root/Source/cmMacroCommand.cxx
diff options
context:
space:
mode:
authorRegina Pfeifer <regina@mailbox.org>2019-07-30 21:54:12 (GMT)
committerKyle Edwards <kyle.edwards@kitware.com>2019-07-31 17:22:42 (GMT)
commit41364824ad84a40c9906b7b5de492e45a74c8945 (patch)
treec53e0a60e2e2d1f736a9ce621a32b582e15285f1 /Source/cmMacroCommand.cxx
parent6491270e0d3699f5151c08ef41dce84724f9ffc1 (diff)
downloadCMake-41364824ad84a40c9906b7b5de492e45a74c8945.zip
CMake-41364824ad84a40c9906b7b5de492e45a74c8945.tar.gz
CMake-41364824ad84a40c9906b7b5de492e45a74c8945.tar.bz2
cmFunctionBlocker: Recycle functions
Diffstat (limited to 'Source/cmMacroCommand.cxx')
-rw-r--r--Source/cmMacroCommand.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/cmMacroCommand.cxx b/Source/cmMacroCommand.cxx
index eb328cc..8689c8f 100644
--- a/Source/cmMacroCommand.cxx
+++ b/Source/cmMacroCommand.cxx
@@ -149,7 +149,7 @@ public:
bool ArgumentsMatch(cmListFileFunction const&,
cmMakefile& mf) const override;
- bool Replay(std::vector<cmListFileFunction> const& functions,
+ bool Replay(std::vector<cmListFileFunction> functions,
cmExecutionStatus& status) override;
std::vector<std::string> Args;
@@ -164,15 +164,15 @@ bool cmMacroFunctionBlocker::ArgumentsMatch(cmListFileFunction const& lff,
return expandedArguments.empty() || expandedArguments[0] == this->Args[0];
}
-bool cmMacroFunctionBlocker::Replay(
- std::vector<cmListFileFunction> const& functions, cmExecutionStatus& status)
+bool cmMacroFunctionBlocker::Replay(std::vector<cmListFileFunction> functions,
+ cmExecutionStatus& status)
{
cmMakefile& mf = status.GetMakefile();
mf.AppendProperty("MACROS", this->Args[0].c_str());
// create a new command and add it to cmake
cmMacroHelperCommand f;
f.Args = this->Args;
- f.Functions = functions;
+ f.Functions = std::move(functions);
f.FilePath = this->GetStartingContext().FilePath;
mf.RecordPolicies(f.Policies);
mf.GetState()->AddScriptedCommand(this->Args[0], std::move(f));