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-02-05 16:39:24 +0300
committerSergey Yershov <yershov@corp.mail.ru>2016-03-23 16:16:51 +0300
commit8d425df9d52b09a530d6e5b266b04cfea555fa61 (patch)
tree1d030fc5a86a1d821ffdf9127c54be3d1167c9a0 /indexer/feature.hpp
parent916b2fd0e4c5c5bba96e62b9b29e5c5fe398f946 (diff)
Correct implementation for FeatureType::ParseMetadata().
Diffstat (limited to 'indexer/feature.hpp')
-rw-r--r--indexer/feature.hpp13
1 files changed, 11 insertions, 2 deletions
diff --git a/indexer/feature.hpp b/indexer/feature.hpp
index be53c9e7ac..4f835947fd 100644
--- a/indexer/feature.hpp
+++ b/indexer/feature.hpp
@@ -284,8 +284,17 @@ public:
string GetRoadNumber() const;
bool HasInternet() const;
- inline feature::Metadata const & GetMetadata() const { return m_metadata; }
- inline feature::Metadata & GetMetadata() { return m_metadata; }
+ inline feature::Metadata const & GetMetadata() const
+ {
+ ParseMetadata();
+ return m_metadata;
+ }
+
+ inline feature::Metadata & GetMetadata()
+ {
+ ParseMetadata();
+ return m_metadata;
+ }
/// @name Statistic functions.
//@{