diff options
author | VladiMihaylenko <vxmihaylenko@gmail.com> | 2016-04-14 14:27:24 +0300 |
---|---|---|
committer | VladiMihaylenko <vxmihaylenko@gmail.com> | 2016-04-14 14:27:24 +0300 |
commit | e04ad0901c9ee9b0605229f22e1e88e2b8f60b5b (patch) | |
tree | c3eab76822cc85ee97ef4c90128f505319f1bdd6 /indexer/editable_map_object.cpp | |
parent | cebc34f406fb70db56ace9c5b478d3445e0cfc55 (diff) |
[omim] Public kMaximumLevelsEditableByUsers constant.
Diffstat (limited to 'indexer/editable_map_object.cpp')
-rw-r--r-- | indexer/editable_map_object.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/indexer/editable_map_object.cpp b/indexer/editable_map_object.cpp index da2222fbf6..b8cd947c09 100644 --- a/indexer/editable_map_object.cpp +++ b/indexer/editable_map_object.cpp @@ -9,6 +9,9 @@ namespace osm { +// static +int8_t const EditableMapObject::kMaximumLevelsEditableByUsers = 25; + bool EditableMapObject::IsNameEditable() const { return m_editableProperties.m_name; } bool EditableMapObject::IsAddressEditable() const { return m_editableProperties.m_address; } @@ -188,7 +191,6 @@ void EditableMapObject::SetFlats(string const & flats) // static bool EditableMapObject::ValidateBuildingLevels(string const & buildingLevels) { - auto constexpr kMaximumLevelsEditableByUsers = 25; uint64_t levels; return strings::to_uint64(buildingLevels, levels) && levels <= kMaximumLevelsEditableByUsers; } |