diff options
author | vng <viktor.govako@gmail.com> | 2016-04-08 16:23:46 +0300 |
---|---|---|
committer | vng <viktor.govako@gmail.com> | 2016-04-18 16:29:39 +0300 |
commit | d66e797c27b890942823ac33cf3150a9bd5036bc (patch) | |
tree | bf9f36d852999c608edd225b7f48804b7bef532c /indexer/classificator.cpp | |
parent | a5eb92b8eb76f405a4da181dd3962eca74974b80 (diff) |
[styles] Do reload styles after map theme changing.
Diffstat (limited to 'indexer/classificator.cpp')
-rw-r--r-- | indexer/classificator.cpp | 7 |
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() |