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:
parent
ef89ad6c55
commit
b44e38a397
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user