input_common/sdl_impl: Make lambda capture more specific in SDLState constructor

We don't need to universally capture by reference. We specifically just
need to capture the this pointer.
This commit is contained in:
Lioncash 2019-03-17 03:20:53 -04:00 committed by fearlessTobi
parent ed31197402
commit bf4b0dd1f4
1 changed files with 1 additions and 1 deletions

View File

@ -475,7 +475,7 @@ SDLState::SDLState() {
initialized = true; initialized = true;
if (start_thread) { if (start_thread) {
poll_thread = std::thread([&] { poll_thread = std::thread([this] {
using namespace std::chrono_literals; using namespace std::chrono_literals;
while (initialized) { while (initialized) {
SDL_PumpEvents(); SDL_PumpEvents();