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/classificator.cpp
parenta5eb92b8eb76f405a4da181dd3962eca74974b80 (diff)
[styles] Do reload styles after map theme changing.
Diffstat (limited to 'indexer/classificator.cpp')
-rw-r--r--indexer/classificator.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/indexer/classificator.cpp b/indexer/classificator.cpp
index d477559584..b59b228b0d 100644
--- a/indexer/classificator.cpp
+++ b/indexer/classificator.cpp
@@ -121,12 +121,13 @@ void ClassifObject::ConcatChildNames(string & s) const
// Classificator implementation
/////////////////////////////////////////////////////////////////////////////////////////
+namespace
+{
Classificator & classif(MapStyle mapStyle)
{
- size_t const index = static_cast<size_t>(mapStyle);
- ASSERT_LESS(index, MapStyleCount, ());
static Classificator c[MapStyleCount];
- return c[index];
+ return c[mapStyle];
+}
}
Classificator & classif()