Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Zolotarev <alex@maps.me>2016-03-14 15:23:06 +0300
committerSergey Yershov <yershov@corp.mail.ru>2016-03-23 16:53:10 +0300
commit8681a7e3499decdffa902ac7b60620ab5a768fb3 (patch)
tree4c36ce7ab856dfecae386d05224b4bd87645370b /indexer/map_object.hpp
parentcea5108b08ba30dcca61afd98d30d71abc311d78 (diff)
[editor] Fixed undefined behavior due to referencing uninitialized variable FeatureType::m_bCommonParsed.
Diffstat (limited to 'indexer/map_object.hpp')
-rw-r--r--indexer/map_object.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/indexer/map_object.hpp b/indexer/map_object.hpp
index 21d64530ae..1cb6ef933e 100644
--- a/indexer/map_object.hpp
+++ b/indexer/map_object.hpp
@@ -91,12 +91,16 @@ public:
// TODO: Remove this method.
feature::Metadata const & GetMetadata() const;
+ bool IsPointType() const;
+
protected:
FeatureID m_featureID;
m2::PointD m_mercator;
StringUtf8Multilang m_name;
feature::TypesHolder m_types;
feature::Metadata m_metadata;
+
+ feature::EGeomType m_geomType = feature::EGeomType::GEOM_UNDEFINED;
};
/// Helper to convert internal feature::Metadata::FMD_* enum into a users-visible one.