forked from organicmaps/organicmaps
[android][editor] fix: Review fixes.
This commit is contained in:
parent
64e9c8033b
commit
4761fe49c0
2 changed files with 1 additions and 3 deletions
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue