summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/ControllerInterface/CoreDevice.cpp
diff options
context:
space:
mode:
authorslick-daddy <slick-daddy@users.noreply.github.com>2026-07-27 06:15:36 +0300
committerslick-daddy <slick-daddy@users.noreply.github.com>2026-07-27 06:15:36 +0300
commitaa2167d473971027eb81ea8f8effc7f43008239c (patch)
tree9bd6547416d96da46fc93c393e99395d56475742 /Source/Core/InputCommon/ControllerInterface/CoreDevice.cpp
parent707d3c7a732634ad8d522bd27e52b075f54ac4f3 (diff)
Return m_devices directly in GetAllDevices().
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface/CoreDevice.cpp')
-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