mirror of
https://github.com/Lime3DS/Lime3DS.git
synced 2024-11-23 18:19:21 +01:00
input_common/sdl: Silence a -Wpessimizing-move warning
Moving when returning by value can inhibit copy elision.
This commit is contained in:
parent
9699194b54
commit
1f186be030
@ -425,7 +425,7 @@ std::vector<std::unique_ptr<InputCommon::Polling::DevicePoller>> GetPollers(
|
||||
pollers.push_back(std::make_unique<SDLButtonPoller>());
|
||||
break;
|
||||
}
|
||||
return std::move(pollers);
|
||||
return pollers;
|
||||
}
|
||||
} // namespace Polling
|
||||
} // namespace SDL
|
||||
|
Loading…
Reference in New Issue
Block a user