From 22fa820501e22dcf57ae51d7287b9361138d7233 Mon Sep 17 00:00:00 2001 From: Dmitry Yunitsky Date: Wed, 1 Jun 2016 20:51:20 +0300 Subject: [PATCH] Added const to getter. --- editor/user_stats.cpp | 2 +- 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; }