diff options
Diffstat (limited to 'Source/Core')
| -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 |
