diff options
author | Alex Zolotarev <alex@mapswithme.com> | 2013-09-12 21:31:41 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:01:25 +0300 |
commit | 29b165c79e638514601d75a792d970f6b9bdf4e9 (patch) | |
tree | 824dbe4cefaef03bda5a1e133d6611289219b778 /indexer/feature_visibility.cpp | |
parent | 6997fabfe78e856f4f60c9aa3e28f79f88b9913a (diff) |
Warning fix
Diffstat (limited to 'indexer/feature_visibility.cpp')
-rw-r--r-- | indexer/feature_visibility.cpp | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/indexer/feature_visibility.cpp b/indexer/feature_visibility.cpp index 62d01d381c..4d9c09fcce 100644 --- a/indexer/feature_visibility.cpp +++ b/indexer/feature_visibility.cpp @@ -102,12 +102,21 @@ namespace int m_scale; ClassifObject::FeatureGeoType m_ft; drule::KeysT & m_keys; +#ifdef DEBUG string & m_name; +#endif public: DrawRuleGetter(int scale, feature::EGeomType ft, - drule::KeysT & keys, string & name) - : m_scale(scale), m_ft(ClassifObject::FeatureGeoType(ft)), m_keys(keys), m_name(name) + drule::KeysT & keys +#ifdef DEBUG + , string & name +#endif + ) + : m_scale(scale), m_ft(ClassifObject::FeatureGeoType(ft)), m_keys(keys) +#ifdef DEBUG + , m_name(name) +#endif { } @@ -137,7 +146,11 @@ pair<int, bool> GetDrawRule(FeatureBase const & f, int level, ASSERT ( keys.empty(), () ); Classificator const & c = classif(); - DrawRuleGetter doRules(level, types.GetGeoType(), keys, names); + DrawRuleGetter doRules(level, types.GetGeoType(), keys +#ifdef DEBUG + , names +#endif + ); for (size_t i = 0; i < types.Size(); ++i) (void)c.ProcessObjects(types[i], doRules); |