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
path: root/map
diff options
context:
space:
mode:
authorAlex Zolotarev <deathbaba@gmail.com>2011-05-23 19:38:38 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:17:53 +0300
commitb44ec9cdfa492792b8532a1726faf25e8b3a06ad (patch)
tree12683bbd26986e94798433f3d3f2073830307199 /map
parent1434e7580848fafaec60825b4375badd5272fa96 (diff)
Moved MAX_SUPPORTED_LANGUAGES constant to defines.hpp
Diffstat (limited to 'map')
-rw-r--r--map/languages.cpp4
-rw-r--r--map/languages.hpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/map/languages.cpp b/map/languages.cpp
index 33ab59c188..0815b7b0d4 100644
--- a/map/languages.cpp
+++ b/map/languages.cpp
@@ -1,6 +1,8 @@
#include "languages.hpp"
#include "settings.hpp"
+#include "../defines.hpp"
+
#include "../base/logging.hpp"
#include "../base/string_utils.hpp"
@@ -34,7 +36,7 @@ namespace languages
static void SetPreferableLanguages(vector<string> const & langCodes)
{
- CHECK_EQUAL(langCodes.size(), 64, ());
+ CHECK_EQUAL(langCodes.size(), MAX_SUPPORTED_LANGUAGES, ());
for (size_t i = 0; i < langCodes.size(); ++i)
{
char const index = StringUtf8Multilang::GetLangIndex(langCodes[i]);
diff --git a/map/languages.hpp b/map/languages.hpp
index 5e928238a5..8f2251c439 100644
--- a/map/languages.hpp
+++ b/map/languages.hpp
@@ -6,8 +6,6 @@
namespace languages
{
- static int const MAX_SUPPORTED_LANGUAGES = 64;
-
typedef vector<pair<string, string> > CodesAndNamesT;
typedef vector<string> CodesT;