removed superfluous const

This commit is contained in:
HMH 2017-10-26 22:31:02 +02:00 committed by sirius
parent ef43af8709
commit 41da2f4497
4 changed files with 8 additions and 8 deletions

View file

@ -801,7 +801,7 @@ int CDemoPlayer::NextFrame()
return IsPlaying(); return IsPlaying();
} }
const int64 CDemoPlayer::time() int64 CDemoPlayer::time()
{ {
#if defined(CONF_VIDEORECORDER) #if defined(CONF_VIDEORECORDER)
static bool s_Recording = false; static bool s_Recording = false;

View file

@ -121,7 +121,7 @@ private:
void ScanFile(); void ScanFile();
int NextFrame(); int NextFrame();
const int64 time(); int64 time();
int64 m_TickTime; int64 m_TickTime;
int64 m_Time; int64 m_Time;

View file

@ -20,8 +20,8 @@ public:
static IVideo* Current() { return ms_pCurrentVideo; } static IVideo* Current() { return ms_pCurrentVideo; }
static const int64 time() { return ms_Time; } static int64 time() { return ms_Time; }
static const float LocalTime() { return ms_LocalTime; } static float LocalTime() { return ms_LocalTime; }
static void SetLocalStartTime(int64 LocalStartTime) { ms_LocalStartTime = LocalStartTime; } static void SetLocalStartTime(int64 LocalStartTime) { ms_LocalStartTime = LocalStartTime; }
static void SetFPS(int fps) { ms_TickTime = time_freq() / fps; } static void SetFPS(int fps) { ms_TickTime = time_freq() / fps; }

View file

@ -35,11 +35,11 @@ protected:
class IUpdater *Updater() const { return m_pClient->Updater(); } class IUpdater *Updater() const { return m_pClient->Updater(); }
#if defined(CONF_VIDEORECORDER) #if defined(CONF_VIDEORECORDER)
const int64 time() const { return IVideo::Current() ? IVideo::time() : time_get(); } int64 time() const { return IVideo::Current() ? IVideo::time() : time_get(); }
const float LocalTime() const { return IVideo::Current() ? IVideo::LocalTime() : Client()->LocalTime(); } float LocalTime() const { return IVideo::Current() ? IVideo::LocalTime() : Client()->LocalTime(); }
#else #else
const int64 time() const { return time_get(); } int64 time() const { return time_get(); }
const float LocalTime() const { return Client()->LocalTime(); } float LocalTime() const { return Client()->LocalTime(); }
#endif #endif