From 41da2f4497705e1d49f92b06daf4fba21fee5e23 Mon Sep 17 00:00:00 2001 From: HMH Date: Thu, 26 Oct 2017 22:31:02 +0200 Subject: [PATCH] removed superfluous const --- src/engine/shared/demo.cpp | 2 +- src/engine/shared/demo.h | 2 +- src/engine/shared/video.h | 4 ++-- src/game/client/component.h | 8 ++++---- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/engine/shared/demo.cpp b/src/engine/shared/demo.cpp index d4b71c0c2..c03e00eab 100644 --- a/src/engine/shared/demo.cpp +++ b/src/engine/shared/demo.cpp @@ -801,7 +801,7 @@ int CDemoPlayer::NextFrame() return IsPlaying(); } -const int64 CDemoPlayer::time() +int64 CDemoPlayer::time() { #if defined(CONF_VIDEORECORDER) static bool s_Recording = false; diff --git a/src/engine/shared/demo.h b/src/engine/shared/demo.h index 63277feb8..79af64ecb 100644 --- a/src/engine/shared/demo.h +++ b/src/engine/shared/demo.h @@ -121,7 +121,7 @@ private: void ScanFile(); int NextFrame(); - const int64 time(); + int64 time(); int64 m_TickTime; int64 m_Time; diff --git a/src/engine/shared/video.h b/src/engine/shared/video.h index 0728aa1f4..72dedab26 100644 --- a/src/engine/shared/video.h +++ b/src/engine/shared/video.h @@ -20,8 +20,8 @@ public: static IVideo* Current() { return ms_pCurrentVideo; } - static const int64 time() { return ms_Time; } - static const float LocalTime() { return ms_LocalTime; } + static int64 time() { return ms_Time; } + static float LocalTime() { return ms_LocalTime; } static void SetLocalStartTime(int64 LocalStartTime) { ms_LocalStartTime = LocalStartTime; } static void SetFPS(int fps) { ms_TickTime = time_freq() / fps; } diff --git a/src/game/client/component.h b/src/game/client/component.h index 24a22c779..09f5fe8f3 100644 --- a/src/game/client/component.h +++ b/src/game/client/component.h @@ -35,11 +35,11 @@ protected: class IUpdater *Updater() const { return m_pClient->Updater(); } #if defined(CONF_VIDEORECORDER) - const int64 time() const { return IVideo::Current() ? IVideo::time() : time_get(); } - const float LocalTime() const { return IVideo::Current() ? IVideo::LocalTime() : Client()->LocalTime(); } + int64 time() const { return IVideo::Current() ? IVideo::time() : time_get(); } + float LocalTime() const { return IVideo::Current() ? IVideo::LocalTime() : Client()->LocalTime(); } #else - const int64 time() const { return time_get(); } - const float LocalTime() const { return Client()->LocalTime(); } + int64 time() const { return time_get(); } + float LocalTime() const { return Client()->LocalTime(); } #endif