summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2017-02-11 00:29:22 -0500
committerLioncash <mathew1800@gmail.com>2017-02-11 00:31:49 -0500
commit98145d216044c49d77e0096c53233ebe9bcb0a0a (patch)
tree25e884f253a4068d01076b3022bed7f90e640740 /Source/Core
parent2cad67952d611c15b7b040512c53af27243235c3 (diff)
ControllerEmu: Add const to UpdateReferences() first reference parameter
None of these parameters are modified.
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/InputCommon/ControlReference/ControlReference.cpp2
-rw-r--r--Source/Core/InputCommon/ControlReference/ControlReference.h2
-rw-r--r--Source/Core/InputCommon/ControllerEmu/ControllerEmu.cpp2
-rw-r--r--Source/Core/InputCommon/ControllerEmu/ControllerEmu.h2
4 files changed, 4 insertions, 4 deletions
diff --git a/Source/Core/InputCommon/ControlReference/ControlReference.cpp b/Source/Core/InputCommon/ControlReference/ControlReference.cpp
index 1151dedfe4..8f0fd5164c 100644
--- a/Source/Core/InputCommon/ControlReference/ControlReference.cpp
+++ b/Source/Core/InputCommon/ControlReference/ControlReference.cpp
@@ -26,7 +26,7 @@ bool ControlReference::InputGateOn()
// Updates a controlreference's binded devices/controls
// need to call this to re-parse a control reference's expression after changing it
//
-void ControlReference::UpdateReference(ciface::Core::DeviceContainer& devices,
+void ControlReference::UpdateReference(const ciface::Core::DeviceContainer& devices,
const ciface::Core::DeviceQualifier& default_device)
{
Expression* expr;
diff --git a/Source/Core/InputCommon/ControlReference/ControlReference.h b/Source/Core/InputCommon/ControlReference/ControlReference.h
index fd45ce8b7c..2e7f43fe65 100644
--- a/Source/Core/InputCommon/ControlReference/ControlReference.h
+++ b/Source/Core/InputCommon/ControlReference/ControlReference.h
@@ -32,7 +32,7 @@ public:
int BoundCount() const;
ciface::ExpressionParser::ExpressionParseStatus GetParseStatus() const;
- void UpdateReference(ciface::Core::DeviceContainer& devices,
+ void UpdateReference(const ciface::Core::DeviceContainer& devices,
const ciface::Core::DeviceQualifier& default_device);
ControlState range;
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