diff options
author | Ralf Habacker <ralf.habacker@freenet.de> | 2023-12-05 22:52:09 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2023-12-13 15:19:38 (GMT) |
commit | b44e38a39736318aaf21a6865fdbee28a0e26700 (patch) | |
tree | 5052a2e8f0ec647421017d0677aeb0e24d6c7e58 /Source | |
parent | ef89ad6c5562cca1911146834b6241e7c4c54653 (diff) | |
download | CMake-b44e38a39736318aaf21a6865fdbee28a0e26700.zip CMake-b44e38a39736318aaf21a6865fdbee28a0e26700.tar.gz CMake-b44e38a39736318aaf21a6865fdbee28a0e26700.tar.bz2 |
cmFileAPICodemodel: Add missing std::move()
This was missed in commit 80a64c9ce5 (fileapi: Add cross-compiling
emulator to codemodel-v2, 2023-11-11).
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmFileAPICodemodel.cxx | 4 |
1 files 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; |