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:
-rw-r--r--indexer/string_file.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/indexer/string_file.cpp b/indexer/string_file.cpp
index b51532abc3..1b411f3340 100644
--- a/indexer/string_file.cpp
+++ b/indexer/string_file.cpp
@@ -44,7 +44,13 @@ bool StringsFile::StringT::operator == (StringT const & name) const
void StringsFile::AddString(StringT const & s)
{
- if (m_strings.size() >= 30000)
+#ifdef OMIM_OS_DESKTOP
+ size_t const maxSize = 1000000;
+#else
+ size_t const maxSize = 30000;
+#endif
+
+ if (m_strings.size() >= maxSize)
Flush();
m_strings.push_back(s);