Просмотр исходного кода

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

Specifying the time unit itself is sufficient here.
Lioncash 7 лет назад
Родитель
Сommit
d74aa13bd3
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/input_common/sdl/sdl_impl.cpp

+ 1 - 1
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);
             }
         });
     }