mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-19 02:17:27 +08:00
cmFileAPICodemodel: Add missing std::move()
This was missed in commit 80a64c9ce5
(fileapi: Add cross-compiling
emulator to codemodel-v2, 2023-11-11).
This commit is contained in:
@@ -2102,7 +2102,7 @@ Json::Value Target::DumpLauncher(const char* name, const char* type)
|
|||||||
for (std::string const& arg : cmMakeRange(commandWithArgs).advance(1)) {
|
for (std::string const& arg : cmMakeRange(commandWithArgs).advance(1)) {
|
||||||
args.append(arg);
|
args.append(arg);
|
||||||
}
|
}
|
||||||
launcher["arguments"] = args;
|
launcher["arguments"] = std::move(args);
|
||||||
}
|
}
|
||||||
return launcher;
|
return launcher;
|
||||||
}
|
}
|
||||||
@@ -2116,7 +2116,7 @@ Json::Value Target::DumpLaunchers()
|
|||||||
if (allow) {
|
if (allow) {
|
||||||
launcher = DumpLauncher("CROSSCOMPILING_EMULATOR", "emulator");
|
launcher = DumpLauncher("CROSSCOMPILING_EMULATOR", "emulator");
|
||||||
if (!launcher.empty()) {
|
if (!launcher.empty()) {
|
||||||
launchers.append(launcher);
|
launchers.append(std::move(launcher));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return launchers;
|
return launchers;
|
||||||
|
Reference in New Issue
Block a user