diff options
author | Alex Zolotarev <deathbaba@gmail.com> | 2011-06-12 20:17:02 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:19:30 +0300 |
commit | e130439f752b3c94ea927bf99525715e42badeb8 (patch) | |
tree | 860b63df015fa409afd5eb231aa20ecf7be586bd /indexer/feature.cpp | |
parent | 7ab5c2d0380a4c9f32e8141def7d9e41bfdb315d (diff) |
Changed language code type from char to int8_t
Diffstat (limited to 'indexer/feature.cpp')
-rw-r--r-- | indexer/feature.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/indexer/feature.cpp b/indexer/feature.cpp index 1110fd924e..f2c7121fcc 100644 --- a/indexer/feature.cpp +++ b/indexer/feature.cpp @@ -942,18 +942,18 @@ FeatureType::geom_stat_t FeatureType::GetTrianglesSize(int scale) const class BestMatchedLangName { - char const * m_priorities; + int8_t const * m_priorities; string & m_result; int m_minPriority; public: - BestMatchedLangName(char const * priorities, string & result) + BestMatchedLangName(int8_t const * priorities, string & result) : m_priorities(priorities), m_result(result), m_minPriority(256) {} - bool operator() (char lang, string const & utf8s) + bool operator() (int8_t lang, string const & utf8s) { ASSERT(lang >= 0 && lang < MAX_SUPPORTED_LANGUAGES, ()); - int const priority = m_priorities[static_cast<uint8_t>(lang)]; + int8_t const priority = m_priorities[lang]; if (priority == 0) { m_result = utf8s; @@ -968,7 +968,7 @@ public: } }; -string FeatureType::GetPreferredDrawableName(char const * priorities) const +string FeatureType::GetPreferredDrawableName(int8_t const * priorities) const { if (!m_bCommonParsed) ParseCommon(); |