diff options
author | Dmitry Yunitsky <yunik@mapswithme.com> | 2016-06-01 20:51:20 +0300 |
---|---|---|
committer | Vladimir Byko-Ianko <v.bykoianko@corp.mail.ru> | 2016-06-24 13:31:45 +0300 |
commit | 22fa820501e22dcf57ae51d7287b9361138d7233 (patch) | |
tree | 094915f5dae6242c9b18b35869021c3a5f6496ca /editor | |
parent | a760d64d691de87cc4cc76d85deaa99ee717296f (diff) |
Added const to getter.
Diffstat (limited to 'editor')
-rw-r--r-- | editor/user_stats.cpp | 2 | ||||
-rw-r--r-- | editor/user_stats.hpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/editor/user_stats.cpp b/editor/user_stats.cpp index 5c3805ccac..e380cc2bad 100644 --- a/editor/user_stats.cpp +++ b/editor/user_stats.cpp @@ -62,7 +62,7 @@ bool UserStats::GetRank(int32_t & rank) const return true; } -bool UserStats::GetLevelUpRequiredFeat(string & levelUpFeat) +bool UserStats::GetLevelUpRequiredFeat(string & levelUpFeat) const { if (m_levelUpRequiredFeat.empty()) return false; diff --git a/editor/user_stats.hpp b/editor/user_stats.hpp index 4b71882736..029bfb38d6 100644 --- a/editor/user_stats.hpp +++ b/editor/user_stats.hpp @@ -21,7 +21,7 @@ public: bool GetChangesCount(int32_t & changesCount) const; bool GetRank(int32_t & rank) const; - bool GetLevelUpRequiredFeat(string & levelUpFeat); + bool GetLevelUpRequiredFeat(string & levelUpFeat) const; time_t GetLastUpdate() const { return m_updateTime; } |