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>2011-10-26 13:48:25 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:26:52 +0300
commit910e94c5377d3fb26751f35720af1f6a7563de56 (patch)
treef1a6a8acb8860a1dce315cd44c629587a0d62164 /indexer/mwm_set.cpp
parentefd712903088cd5d8dd6f473ecb7a1a7fe5f6a72 (diff)
Fix region name getting from mwm file name.
New column in QT search panel for region name.
Diffstat (limited to 'indexer/mwm_set.cpp')
-rw-r--r--indexer/mwm_set.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/indexer/mwm_set.cpp b/indexer/mwm_set.cpp
index b092b6cd09..4a81891ee9 100644
--- a/indexer/mwm_set.cpp
+++ b/indexer/mwm_set.cpp
@@ -1,5 +1,7 @@
#include "mwm_set.hpp"
+#include "../../defines.hpp"
+
#include "../base/logging.hpp"
#include "../base/macros.hpp"
#include "../base/stl_add.hpp"
@@ -99,6 +101,13 @@ MwmSet::MwmId MwmSet::GetIdByName(string const & name)
return INVALID_MWM_ID;
}
+string MwmSet::MwmLock::GetCountryName() const
+{
+ string const & src = m_mwmSet.m_name[m_id];
+ ASSERT ( !src.empty(), () );
+ return src.substr(0, src.size() - strlen(DATA_FILE_EXTENSION));
+}
+
bool MwmSet::Add(string const & fileName)
{
threads::MutexGuard mutexGuard(m_lock);