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:
authorAlex Zolotarev <alex@maps.me>2016-02-16 09:40:16 +0300
committerSergey Yershov <yershov@corp.mail.ru>2016-03-23 16:21:19 +0300
commitdda5f4a284a12188f093dc4dc31a547519cac2c9 (patch)
tree14d4d281587603bfdc82715a00d3e35aa79dae5a /coding/multilang_utf8_string.cpp
parent68fec8f1f4240d84261ff9210e7d833ace26989f (diff)
Renamed constants.
Diffstat (limited to 'coding/multilang_utf8_string.cpp')
-rw-r--r--coding/multilang_utf8_string.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/coding/multilang_utf8_string.cpp b/coding/multilang_utf8_string.cpp
index eac7ea4513..9408e24e71 100644
--- a/coding/multilang_utf8_string.cpp
+++ b/coding/multilang_utf8_string.cpp
@@ -17,13 +17,14 @@ static char const * gLangs[] = {
int8_t StringUtf8Multilang::GetLangIndex(string const & lang)
{
- static_assert(ARRAY_SIZE(gLangs) == MAX_SUPPORTED_LANGUAGES, "With current encoding we are limited to 64 languages max.");
+ static_assert(ARRAY_SIZE(gLangs) == kMaxSupportedLanguages,
+ "With current encoding we are limited to 64 languages max.");
for (size_t i = 0; i < ARRAY_SIZE(gLangs); ++i)
if (lang == gLangs[i])
return static_cast<int8_t>(i);
- return UNSUPPORTED_LANGUAGE_CODE;
+ return kUnsupportedLanguageCode;
}
char const * StringUtf8Multilang::GetLangByCode(int8_t langCode)