From d74aa13bd35e43652b7f8759639a65230971cadc Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sun, 17 Mar 2019 03:19:55 -0400 Subject: input_common/sdl_impl: Remove unnecessary std::chrono::duration construction Specifying the time unit itself is sufficient here. --- src/input_common/sdl/sdl_impl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/input_common/sdl') diff --git a/src/input_common/sdl/sdl_impl.cpp b/src/input_common/sdl/sdl_impl.cpp index c223f5843..991ef9683 100644 --- a/src/input_common/sdl/sdl_impl.cpp +++ b/src/input_common/sdl/sdl_impl.cpp @@ -479,7 +479,7 @@ SDLState::SDLState() { using namespace std::chrono_literals; while (initialized) { SDL_PumpEvents(); - std::this_thread::sleep_for(std::chrono::duration(10ms)); + std::this_thread::sleep_for(10ms); } }); } -- cgit v1.2.3