diff options
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface/Pipes')
| -rw-r--r-- | Source/Core/InputCommon/ControllerInterface/Pipes/Pipes.cpp | 3 | ||||
| -rw-r--r-- | Source/Core/InputCommon/ControllerInterface/Pipes/Pipes.h | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/Source/Core/InputCommon/ControllerInterface/Pipes/Pipes.cpp b/Source/Core/InputCommon/ControllerInterface/Pipes/Pipes.cpp index 20baa74be9..ce0ddb3314 100644 --- a/Source/Core/InputCommon/ControllerInterface/Pipes/Pipes.cpp +++ b/Source/Core/InputCommon/ControllerInterface/Pipes/Pipes.cpp @@ -13,6 +13,7 @@ #include <sstream> #include <string> #include <unistd.h> +#include <utility> #include <vector> #include "Common/FileUtil.h" @@ -73,7 +74,7 @@ void InputBackend::PopulateDevices() } } -PipeDevice::PipeDevice(int fd, const std::string& name) : m_fd(fd), m_name(name) +PipeDevice::PipeDevice(int fd, std::string name) : m_fd(fd), m_name(std::move(name)) { for (const auto& tok : s_button_tokens) { diff --git a/Source/Core/InputCommon/ControllerInterface/Pipes/Pipes.h b/Source/Core/InputCommon/ControllerInterface/Pipes/Pipes.h index 857d5e8128..d9e2d7b4b7 100644 --- a/Source/Core/InputCommon/ControllerInterface/Pipes/Pipes.h +++ b/Source/Core/InputCommon/ControllerInterface/Pipes/Pipes.h @@ -26,7 +26,7 @@ std::unique_ptr<ciface::InputBackend> CreateInputBackend(ControllerInterface* co class PipeDevice : public Core::Device { public: - PipeDevice(int fd, const std::string& name); + PipeDevice(int fd, std::string name); ~PipeDevice(); Core::DeviceRemoval UpdateInput() override; |
