diff options
author | vng <viktor.govako@gmail.com> | 2011-10-26 13:48:25 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:26:52 +0300 |
commit | 910e94c5377d3fb26751f35720af1f6a7563de56 (patch) | |
tree | f1a6a8acb8860a1dce315cd44c629587a0d62164 /indexer/mwm_set.cpp | |
parent | efd712903088cd5d8dd6f473ecb7a1a7fe5f6a72 (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.cpp | 9 |
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); |