diff options
| author | 2019-03-17 03:20:53 -0400 | |
|---|---|---|
| committer | 2019-03-17 04:02:52 -0400 | |
| commit | 114060fd87a8b8a869a20ba4b64f8bb40c37c7e6 (patch) | |
| tree | 77384b48ebaf453d5004765f8cee784c59bff59a /src/input_common/sdl/sdl_impl.cpp | |
| parent | input_common/sdl_impl: Remove unnecessary std::chrono::duration construction (diff) | |
| download | yuzu-114060fd87a8b8a869a20ba4b64f8bb40c37c7e6.tar.gz yuzu-114060fd87a8b8a869a20ba4b64f8bb40c37c7e6.tar.xz yuzu-114060fd87a8b8a869a20ba4b64f8bb40c37c7e6.zip | |
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.
Diffstat (limited to 'src/input_common/sdl/sdl_impl.cpp')
| -rw-r--r-- | src/input_common/sdl/sdl_impl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/input_common/sdl/sdl_impl.cpp b/src/input_common/sdl/sdl_impl.cpp index 991ef9683..6e8376549 100644 --- a/src/input_common/sdl/sdl_impl.cpp +++ b/src/input_common/sdl/sdl_impl.cpp | |||
| @@ -475,7 +475,7 @@ SDLState::SDLState() { | |||
| 475 | 475 | ||
| 476 | initialized = true; | 476 | initialized = true; |
| 477 | if (start_thread) { | 477 | if (start_thread) { |
| 478 | poll_thread = std::thread([&] { | 478 | poll_thread = std::thread([this] { |
| 479 | using namespace std::chrono_literals; | 479 | using namespace std::chrono_literals; |
| 480 | while (initialized) { | 480 | while (initialized) { |
| 481 | SDL_PumpEvents(); | 481 | SDL_PumpEvents(); |