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:
authorMaxim Pimenov <m@maps.me>2017-10-10 15:53:13 +0300
committerTatiana Yan <tatiana.kondakova@gmail.com>2017-10-11 13:33:51 +0300
commit4f2f14e8cea0591551df748feda414762e764fdc (patch)
treee8671506e2b0d168b28b4f583519bd3ec66ac0df /indexer/categories_holder.hpp
parent61931851397d8bf72ae7c5acd14c9ff2c68a6f55 (diff)
[search] Using SmallSet for Locales.
Diffstat (limited to 'indexer/categories_holder.hpp')
-rw-r--r--indexer/categories_holder.hpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/indexer/categories_holder.hpp b/indexer/categories_holder.hpp
index d46fd47615..40f34bc597 100644
--- a/indexer/categories_holder.hpp
+++ b/indexer/categories_holder.hpp
@@ -63,8 +63,9 @@ private:
GroupTranslations m_groupTranslations;
public:
- static int8_t const kEnglishCode;
- static int8_t const kUnsupportedLocaleCode;
+ static int8_t constexpr kEnglishCode = 1;
+ static int8_t constexpr kUnsupportedLocaleCode = -1;
+ static uint8_t constexpr kMaxSupportedLocaleIndex = 30;
static vector<Mapping> const kLocaleMapping;
// List of languages that are currently disabled in the application