diff options
author | vng <viktor.govako@gmail.com> | 2014-10-30 13:21:52 +0300 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:31:55 +0300 |
commit | a471524c3f19e1fa20e5e634f7a3933c7f3a039a (patch) | |
tree | 8532143f7edccd4fdaffac7f1113aeacf47bd3f5 /indexer/feature_visibility.cpp | |
parent | 07d95abd471a2f4423b2b473d138d59a1a1085dd (diff) |
Minor refactoring - use “initializer_list” for getting classificator types.
Diffstat (limited to 'indexer/feature_visibility.cpp')
-rw-r--r-- | indexer/feature_visibility.cpp | 6 |
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 |