FPSCounter: Direct initialize class members

This commit is contained in:
Lioncash 2015-09-29 09:47:30 -04:00
parent bf23fcfc1f
commit e82b6a8532
2 changed files with 3 additions and 6 deletions

View File

@ -13,9 +13,6 @@
#define FPS_REFRESH_INTERVAL 1000 #define FPS_REFRESH_INTERVAL 1000
FPSCounter::FPSCounter() FPSCounter::FPSCounter()
: m_fps(0)
, m_counter(0)
, m_fps_last_counter(0)
{ {
m_update_time.Update(); m_update_time.Update();
m_render_time.Update(); m_render_time.Update();

View File

@ -21,9 +21,9 @@ public:
unsigned int GetFPS() const { return m_fps; } unsigned int GetFPS() const { return m_fps; }
private: private:
unsigned int m_fps; unsigned int m_fps = 0;
unsigned int m_counter; unsigned int m_counter = 0;
unsigned int m_fps_last_counter; unsigned int m_fps_last_counter = 0;
Common::Timer m_update_time; Common::Timer m_update_time;
Common::Timer m_render_time; Common::Timer m_render_time;