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>2016-04-08 16:23:46 +0300
committervng <viktor.govako@gmail.com>2016-04-18 16:29:39 +0300
commitd66e797c27b890942823ac33cf3150a9bd5036bc (patch)
treebf9f36d852999c608edd225b7f48804b7bef532c /indexer/drawing_rules.cpp
parenta5eb92b8eb76f405a4da181dd3962eca74974b80 (diff)
[styles] Do reload styles after map theme changing.
Diffstat (limited to 'indexer/drawing_rules.cpp')
-rw-r--r--indexer/drawing_rules.cpp7
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()