diff options
author | Alex Zolotarev <alex@maps.me> | 2016-03-14 15:23:06 +0300 |
---|---|---|
committer | Sergey Yershov <yershov@corp.mail.ru> | 2016-03-23 16:53:10 +0300 |
commit | 8681a7e3499decdffa902ac7b60620ab5a768fb3 (patch) | |
tree | 4c36ce7ab856dfecae386d05224b4bd87645370b /indexer/map_object.cpp | |
parent | cea5108b08ba30dcca61afd98d30d71abc311d78 (diff) |
[editor] Fixed undefined behavior due to referencing uninitialized variable FeatureType::m_bCommonParsed.
Diffstat (limited to 'indexer/map_object.cpp')
-rw-r--r-- | indexer/map_object.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/indexer/map_object.cpp b/indexer/map_object.cpp index a84bad7526..9d956ab7f2 100644 --- a/indexer/map_object.cpp +++ b/indexer/map_object.cpp @@ -64,6 +64,7 @@ void MapObject::SetFromFeatureType(FeatureType const & ft) m_metadata = ft.GetMetadata(); m_featureID = ft.GetID(); ASSERT(m_featureID.IsValid(), ()); + m_geomType = ft.GetFeatureType(); } FeatureID const & MapObject::GetID() const { return m_featureID; } @@ -175,4 +176,5 @@ string MapObject::GetBuildingLevels() const } feature::Metadata const & MapObject::GetMetadata() const { return m_metadata; } +bool MapObject::IsPointType() const { return m_geomType == feature::EGeomType::GEOM_POINT; } } // namespace osm |