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();
}
const int64 CDemoPlayer::time()
int64 CDemoPlayer::time()
{
#if defined(CONF_VIDEORECORDER)
static bool s_Recording = false;

View file

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

View file

@ -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; }

View file

@ -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