summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon
diff options
context:
space:
mode:
authorScott Mansell <phiren@gmail.com>2026-07-30 21:10:41 +1200
committerGitHub <noreply@github.com>2026-07-30 21:10:41 +1200
commit20fea85b53d1251c30ce031fec54f5630fb25e23 (patch)
tree402fd409ea920f6194862efc18058ed2019576d9 /Source/Core/InputCommon
parent8b8d0847aef953feb7c8a0326ea20b7e71b2db32 (diff)
parentaa2167d473971027eb81ea8f8effc7f43008239c (diff)
Merge pull request #14765 from slick-daddy/opt-6
InputCommon: return the device list directly in GetAllDevices
Diffstat (limited to 'Source/Core/InputCommon')
-rw-r--r--Source/Core/InputCommon/ControllerInterface/CoreDevice.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/Source/Core/InputCommon/ControllerInterface/CoreDevice.cpp b/Source/Core/InputCommon/ControllerInterface/CoreDevice.cpp
index a10edd13c9..9f7e708593 100644
--- a/Source/Core/InputCommon/ControllerInterface/CoreDevice.cpp
+++ b/Source/Core/InputCommon/ControllerInterface/CoreDevice.cpp
@@ -261,12 +261,7 @@ std::vector<std::shared_ptr<Device>> DeviceContainer::GetAllDevices() const
{
std::lock_guard lk(m_devices_mutex);
- std::vector<std::shared_ptr<Device>> devices;
-
- for (const auto& d : m_devices)
- devices.emplace_back(d);
-
- return devices;
+ return m_devices;
}
std::vector<std::string> DeviceContainer::GetAllDeviceStrings() const