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; } diff --git a/indexer/editable_map_object.hpp b/indexer/editable_map_object.hpp index 4f31ccdadf..eef0ddb55d 100644 --- a/indexer/editable_map_object.hpp +++ b/indexer/editable_map_object.hpp @@ -54,6 +54,8 @@ struct LocalizedStreet class EditableMapObject : public MapObject { public: + static int8_t const kMaximumLevelsEditableByUsers; + bool IsNameEditable() const; bool IsAddressEditable() const;