Browse Source

input_common/sdl_impl: Remove unnecessary std::chrono::duration construction

Specifying the time unit itself is sufficient here.
nce_cpp
Lioncash 7 years ago
parent
commit
ddbcc91a56
  1. 2
      src/input_common/sdl/sdl_impl.cpp

2
src/input_common/sdl/sdl_impl.cpp

@ -479,7 +479,7 @@ SDLState::SDLState() {
using namespace std::chrono_literals; using namespace std::chrono_literals;
while (initialized) { while (initialized) {
SDL_PumpEvents(); SDL_PumpEvents();
std::this_thread::sleep_for(std::chrono::duration(10ms));
std::this_thread::sleep_for(10ms);
} }
}); });
} }

Loading…
Cancel
Save