From b44e38a39736318aaf21a6865fdbee28a0e26700 Mon Sep 17 00:00:00 2001 From: Ralf Habacker Date: Tue, 5 Dec 2023 23:52:09 +0100 Subject: cmFileAPICodemodel: Add missing std::move() This was missed in commit 80a64c9ce5 (fileapi: Add cross-compiling emulator to codemodel-v2, 2023-11-11). --- Source/cmFileAPICodemodel.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/cmFileAPICodemodel.cxx b/Source/cmFileAPICodemodel.cxx index a6c3c66..c0c9b75 100644 --- a/Source/cmFileAPICodemodel.cxx +++ b/Source/cmFileAPICodemodel.cxx @@ -2102,7 +2102,7 @@ Json::Value Target::DumpLauncher(const char* name, const char* type) for (std::string const& arg : cmMakeRange(commandWithArgs).advance(1)) { args.append(arg); } - launcher["arguments"] = args; + launcher["arguments"] = std::move(args); } return launcher; } @@ -2116,7 +2116,7 @@ Json::Value Target::DumpLaunchers() if (allow) { launcher = DumpLauncher("CROSSCOMPILING_EMULATOR", "emulator"); if (!launcher.empty()) { - launchers.append(launcher); + launchers.append(std::move(launcher)); } } return launchers; -- cgit v0.12