VERY experimental Nintendo Switch 2 emulator
C++
sdl_impl: Make use of std::move on std::string where applicable
Lioncasheb2ab15bdbf8
diff --git a/src/input_common/sdl/sdl_impl.cpp b/src/input_common/sdl/sdl_impl.cppindex 85fcd457cb..8d83184d2d 100644--- a/src/input_common/sdl/sdl_impl.cpp+++ b/src/input_common/sdl/sdl_impl.cpp@@ -577,7 +577,7 @@ Common::ParamPackage BuildAnalogParamPackageForButton(int port, std::string guidfloat value = 0.1f) {Common::ParamPackage params({{"engine", "sdl"}});params.Set("port", port);- params.Set("guid", guid);+ params.Set("guid", std::move(guid));params.Set("axis", axis);if (value > 0) {params.Set("direction", "+");@@ -592,7 +592,7 @@ Common::ParamPackage BuildAnalogParamPackageForButton(int port, std::string guidCommon::ParamPackage BuildButtonParamPackageForButton(int port, std::string guid, u8 button) {Common::ParamPackage params({{"engine", "sdl"}});params.Set("port", port);- params.Set("guid", guid);+ params.Set("guid", std::move(guid));params.Set("button", button);return params;}@@ -601,7 +601,7 @@ Common::ParamPackage BuildHatParamPackageForButton(int port, std::string guid, uCommon::ParamPackage params({{"engine", "sdl"}});params.Set("port", port);- params.Set("guid", guid);+ params.Set("guid", std::move(guid));params.Set("hat", hat);switch (value) {case SDL_HAT_UP: