Selaa lähdekoodia

cmFileAPICodemodel: Add missing std::move()

This was missed in commit 80a64c9ce5 (fileapi: Add cross-compiling
emulator to codemodel-v2, 2023-11-11).
Ralf Habacker 1 vuosi sitten
vanhempi
sitoutus
b44e38a397
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      Source/cmFileAPICodemodel.cxx

+ 2 - 2
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;