diff options
| author | slick-daddy <slick-daddy@users.noreply.github.com> | 2026-07-27 06:15:36 +0300 |
|---|---|---|
| committer | slick-daddy <slick-daddy@users.noreply.github.com> | 2026-07-27 06:15:36 +0300 |
| commit | aa2167d473971027eb81ea8f8effc7f43008239c (patch) | |
| tree | 9bd6547416d96da46fc93c393e99395d56475742 | |
| parent | 707d3c7a732634ad8d522bd27e52b075f54ac4f3 (diff) | |
Return m_devices directly in GetAllDevices().
| -rw-r--r-- | Source/Core/InputCommon/ControllerInterface/CoreDevice.cpp | 7 |
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 |
