diff options
Diffstat (limited to 'indexer/drawing_rules.cpp')
-rw-r--r-- | indexer/drawing_rules.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/indexer/drawing_rules.cpp b/indexer/drawing_rules.cpp index 06b1aef206..6fae8f7937 100644 --- a/indexer/drawing_rules.cpp +++ b/indexer/drawing_rules.cpp @@ -185,12 +185,13 @@ void RulesHolder::ResizeCaches(size_t s) ForEachRule(bind(&BaseRule::CheckCacheSize, _4, s)); } +namespace +{ RulesHolder & rules(MapStyle mapStyle) { - size_t const index = static_cast<size_t>(mapStyle); - ASSERT_LESS(index, MapStyleCount, ()); static RulesHolder h[MapStyleCount]; - return h[index]; + return h[mapStyle]; +} } RulesHolder & rules() |