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>2015-07-01 10:24:27 +0300
committerAlex Zolotarev <alex@maps.me>2015-09-23 02:53:24 +0300
commita515058ca74e326307a10ac868d745904cae4bc7 (patch)
tree5d79a64a79cdda6b328fe583bd6d01626631fc9a /indexer/categories_holder.cpp
parent1f6623827ed2b19d02f3bd48651be107e37157c6 (diff)
[categories] Correct synonyms for new languages.
Diffstat (limited to 'indexer/categories_holder.cpp')
-rw-r--r--indexer/categories_holder.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/indexer/categories_holder.cpp b/indexer/categories_holder.cpp
index 883480b79a..e1d6dd546c 100644
--- a/indexer/categories_holder.cpp
+++ b/indexer/categories_holder.cpp
@@ -65,9 +65,8 @@ bool CategoriesHolder::ValidKeyToken(StringT const & s)
return true;
/// @todo We need to have global stop words array for the most used languages.
- char const * arr[] = { "a", "z", "s", "d", "di", "de", "le", "wi", "fi", "ra", "xe", "ao" };
- for (size_t i = 0; i < ARRAY_SIZE(arr); ++i)
- if (s.IsEqualAscii(arr[i]))
+ for (char const * token : { "a", "z", "s", "d", "di", "de", "le", "wi", "fi", "ra", "ao" })
+ if (s.IsEqualAscii(token))
return false;
return true;