summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/ControllerInterface/Device.h
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2019-05-29 19:10:50 -0400
committerLioncash <mathew1800@gmail.com>2019-05-29 19:12:21 -0400
commit27346fee8a5466503f32493510da98846f2efb01 (patch)
tree3803d44ecd1526a6e8fee001fce930e3ad47710b /Source/Core/InputCommon/ControllerInterface/Device.h
parent246e2a77ceb7fb5ebf05286af07f598b3db40c2b (diff)
ControllerInterface/Device: Take vector by const reference in DetectInput()
The vector is only ever queryied and it's contents aren't modified, so there's no reason to take the vector by value. We can take a constant reference to it to avoid unnecessary allocating.
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface/Device.h')
-rw-r--r--Source/Core/InputCommon/ControllerInterface/Device.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/InputCommon/ControllerInterface/Device.h b/Source/Core/InputCommon/ControllerInterface/Device.h
index b5a8695629..fd947ee654 100644
--- a/Source/Core/InputCommon/ControllerInterface/Device.h
+++ b/Source/Core/InputCommon/ControllerInterface/Device.h
@@ -188,7 +188,7 @@ public:
bool HasConnectedDevice(const DeviceQualifier& qualifier) const;
std::pair<std::shared_ptr<Device>, Device::Input*>
- DetectInput(u32 wait_ms, std::vector<std::string> device_strings);
+ DetectInput(u32 wait_ms, const std::vector<std::string>& device_strings);
protected:
mutable std::mutex m_devices_mutex;