diff options
author | Alexander Marchuk <alexm@maps.me> | 2016-06-17 15:34:56 +0300 |
---|---|---|
committer | Vladimir Byko-Ianko <v.bykoianko@corp.mail.ru> | 2016-06-24 13:31:46 +0300 |
commit | 4761fe49c0b2521b545c814cd7f4a30c9b38d5ff (patch) | |
tree | 8aa5810947a01d5fe65e29d6f24b24ffb2f94770 | |
parent | 64e9c8033b6e785dd8086b4dc47f60e8fa8da62f (diff) |
[android][editor] fix: Review fixes.
-rw-r--r-- | editor/user_stats.cpp | 2 | ||||
-rw-r--r-- | indexer/editable_map_object.cpp | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/editor/user_stats.cpp b/editor/user_stats.cpp index 1b3b7f89e7..cae20eeb49 100644 --- a/editor/user_stats.cpp +++ b/editor/user_stats.cpp @@ -61,7 +61,7 @@ bool UserStats::GetRank(int32_t & rank) const return true; } -bool UserStats::GetLevelUpRequiredFeat(string & levelUpFeat) const +bool UserStats::GetLevelUpRequiredFeat(string & levelUpFeat) const { if (m_levelUpRequiredFeat.empty()) return false; diff --git a/indexer/editable_map_object.cpp b/indexer/editable_map_object.cpp index 16c0a06804..730f3bbe89 100644 --- a/indexer/editable_map_object.cpp +++ b/indexer/editable_map_object.cpp @@ -200,8 +200,6 @@ bool EditableMapObject::ValidateBuildingLevels(string const & buildingLevels) if (buildingLevels.size() > 18 /* max number of digits in uint_64 */) return false; - if (buildingLevels.empty()) - return true; uint64_t levels; return strings::to_uint64(buildingLevels, levels) && levels > 0 && levels <= kMaximumLevelsEditableByUsers; |