mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-01 13:48:56 +00:00
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.
This commit is contained in:
parent
246e2a77ce
commit
27346fee8a
2 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue