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:
authorvng <viktor.govako@gmail.com>2014-10-30 13:21:52 +0300
committerAlex Zolotarev <alex@maps.me>2015-09-23 02:31:55 +0300
commita471524c3f19e1fa20e5e634f7a3933c7f3a039a (patch)
tree8532143f7edccd4fdaffac7f1113aeacf47bd3f5 /indexer/feature_visibility.cpp
parent07d95abd471a2f4423b2b473d138d59a1a1085dd (diff)
Minor refactoring - use “initializer_list” for getting classificator types.
Diffstat (limited to 'indexer/feature_visibility.cpp')
-rw-r--r--indexer/feature_visibility.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/indexer/feature_visibility.cpp b/indexer/feature_visibility.cpp
index 2d119bc3e0..59a941d320 100644
--- a/indexer/feature_visibility.cpp
+++ b/indexer/feature_visibility.cpp
@@ -420,10 +420,10 @@ pair<int, int> GetDrawableScaleRangeForRules(FeatureBase const & f, int rules)
return GetDrawableScaleRangeForRules(TypesHolder(f), rules);
}
-void TypeSetChecker::SetType(StringT * beg, StringT * end)
+TypeSetChecker::TypeSetChecker(initializer_list<char const *> const & lst)
{
- m_type = classif().GetTypeByPath(vector<string>(beg, end));
- m_level = distance(beg, end);
+ m_type = classif().GetTypeByPath(lst);
+ m_level = lst.size();
}
bool TypeSetChecker::IsEqual(uint32_t type) const