From bf9b865efd1da1651ba76bb9d432cb28438fe096 Mon Sep 17 00:00:00 2001 From: Alexander Batalov Date: Sat, 28 May 2022 12:48:26 +0300 Subject: [PATCH] Add missing include --- src/fps_limiter.cc | 2 +- src/fps_limiter.h | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/fps_limiter.cc b/src/fps_limiter.cc index e91040d..5c1897a 100644 --- a/src/fps_limiter.cc +++ b/src/fps_limiter.cc @@ -2,7 +2,7 @@ #include -FpsLimiter::FpsLimiter(size_t fps) +FpsLimiter::FpsLimiter(std::size_t fps) : _fps(fps) , _ticks(0) { diff --git a/src/fps_limiter.h b/src/fps_limiter.h index 1667d28..9617154 100644 --- a/src/fps_limiter.h +++ b/src/fps_limiter.h @@ -1,15 +1,17 @@ #ifndef FPS_LIMITER_H #define FPS_LIMITER_H +#include + class FpsLimiter { public: - FpsLimiter(size_t fps = 60); + FpsLimiter(std::size_t fps = 60); void mark(); void throttle() const; private: - const size_t _fps; - size_t _ticks; + const std::size_t _fps; + std::size_t _ticks; }; #endif /* FPS_LIMITER_H */