diff options
| author | Lioncash <mathew1800@gmail.com> | 2017-02-11 00:29:22 -0500 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2017-02-11 00:31:49 -0500 |
| commit | 98145d216044c49d77e0096c53233ebe9bcb0a0a (patch) | |
| tree | 25e884f253a4068d01076b3022bed7f90e640740 /Source/Core/InputCommon/ControllerEmu | |
| parent | 2cad67952d611c15b7b040512c53af27243235c3 (diff) | |
ControllerEmu: Add const to UpdateReferences() first reference parameter
None of these parameters are modified.
Diffstat (limited to 'Source/Core/InputCommon/ControllerEmu')
| -rw-r--r-- | Source/Core/InputCommon/ControllerEmu/ControllerEmu.cpp | 2 | ||||
| -rw-r--r-- | Source/Core/InputCommon/ControllerEmu/ControllerEmu.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/InputCommon/ControllerEmu/ControllerEmu.cpp b/Source/Core/InputCommon/ControllerEmu/ControllerEmu.cpp index 2aa65b3d42..ce09966d2d 100644 --- a/Source/Core/InputCommon/ControllerEmu/ControllerEmu.cpp +++ b/Source/Core/InputCommon/ControllerEmu/ControllerEmu.cpp @@ -30,7 +30,7 @@ std::unique_lock<std::recursive_mutex> EmulatedController::GetStateLock() return lock; } -void EmulatedController::UpdateReferences(ControllerInterface& devi) +void EmulatedController::UpdateReferences(const ControllerInterface& devi) { const auto lock = GetStateLock(); for (auto& ctrlGroup : groups) diff --git a/Source/Core/InputCommon/ControllerEmu/ControllerEmu.h b/Source/Core/InputCommon/ControllerEmu/ControllerEmu.h index 24f4434dcb..15fb2afd3f 100644 --- a/Source/Core/InputCommon/ControllerEmu/ControllerEmu.h +++ b/Source/Core/InputCommon/ControllerEmu/ControllerEmu.h @@ -33,7 +33,7 @@ public: virtual void SaveConfig(IniFile::Section* sec, const std::string& base = ""); void UpdateDefaultDevice(); - void UpdateReferences(ControllerInterface& devi); + void UpdateReferences(const ControllerInterface& devi); // This returns a lock that should be held before calling State() on any control // references and GetState(), by extension. This prevents a race condition |
