From 1091bee10e5d32cf20a6b849632abaf9a79164e9 Mon Sep 17 00:00:00 2001 From: darkf <> Date: Mon, 6 Apr 2020 01:11:37 -0700 Subject: [PATCH] InputDeviceManager::FindDevice uses const string& --- src/common/input/InputManager.cpp | 2 +- src/common/input/InputManager.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/input/InputManager.cpp b/src/common/input/InputManager.cpp index 4fc9337e4..013eaae06 100644 --- a/src/common/input/InputManager.cpp +++ b/src/common/input/InputManager.cpp @@ -473,7 +473,7 @@ std::vector InputDeviceManager::GetDeviceList() const return dev_list; } -std::shared_ptr InputDeviceManager::FindDevice(std::string& QualifiedName) const +std::shared_ptr InputDeviceManager::FindDevice(const std::string& QualifiedName) const { std::lock_guard lck(m_Mtx); diff --git a/src/common/input/InputManager.h b/src/common/input/InputManager.h index f7ff6a7cf..44468bc1e 100644 --- a/src/common/input/InputManager.h +++ b/src/common/input/InputManager.h @@ -74,7 +74,7 @@ public: // get the name of the devices currently detected std::vector GetDeviceList() const; // find device from its gui name - std::shared_ptr FindDevice(std::string& QualifiedName) const; + std::shared_ptr FindDevice(const std::string& QualifiedName) const; // find device from its sdl id std::shared_ptr FindDevice(SDL_JoystickID id) const; // find device from its xbox port