Skip to content
Snippets Groups Projects
Commit d8b28adb authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen
Browse files

ml: DeviceLister: Fix erroneous std::vector initialization

parent 0e3cd395
No related branches found
No related tags found
No related merge requests found
......@@ -4,7 +4,8 @@ std::vector<std::tuple<std::string, std::string, bool>>
AndroidDeviceLister::devices() const
{
std::lock_guard<std::mutex> guard(m_mutex);
std::vector<std::tuple<std::string, std::string, bool>> devices(m_devices.size());
std::vector<std::tuple<std::string, std::string, bool>> devices;
devices.reserve( m_devices.size() );
for(auto kv : m_devices)
devices.push_back(kv.second);
return devices;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment