mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-08-07 20:54:48 -05:00
Return m_devices directly in GetAllDevices().
This commit is contained in:
parent
707d3c7a73
commit
aa2167d473
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user