fuck you, const!

This commit is contained in:
Seth Alves 2015-10-26 13:55:07 -07:00
parent 8d0aaed41a
commit 0dff037f56
2 changed files with 4 additions and 4 deletions

View file

@ -246,14 +246,14 @@ bool ObjectAction::lifetimeIsOver() {
return false; return false;
} }
quint64 ObjectAction::localTimeToServerTime(quint64 timeValue) { quint64 ObjectAction::localTimeToServerTime(quint64 timeValue) const {
if (timeValue == 0) { if (timeValue == 0) {
return 0; return 0;
} }
return timeValue + getEntityServerClockSkew(); return timeValue + getEntityServerClockSkew();
} }
quint64 ObjectAction::serverTimeToLocalTime(quint64 timeValue) { quint64 ObjectAction::serverTimeToLocalTime(quint64 timeValue) const {
if (timeValue == 0) { if (timeValue == 0) {
return 0; return 0;
} }

View file

@ -68,8 +68,8 @@ protected:
quint64 _expires; // in seconds since epoch quint64 _expires; // in seconds since epoch
QString _tag; QString _tag;
quint64 localTimeToServerTime(quint64 timeValue); quint64 localTimeToServerTime(quint64 timeValue) const;
quint64 serverTimeToLocalTime(quint64 timeValue); quint64 serverTimeToLocalTime(quint64 timeValue) const;
private: private:
int getEntityServerClockSkew() const; int getEntityServerClockSkew() const;