diff options
author | vng <viktor.govako@gmail.com> | 2015-07-15 15:39:07 +0300 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:57:10 +0300 |
commit | 29aa3a7d7d7c30a3024456cfb4c11c1406986dfc (patch) | |
tree | bf5259d5b09eb3acc1905712756072ba019fc634 /indexer/mwm_set.cpp | |
parent | be4452d03a48bb8642010ffb2c09f5198e116a81 (diff) |
[mwm set] Skip mwm files with higher format.
Diffstat (limited to 'indexer/mwm_set.cpp')
-rw-r--r-- | indexer/mwm_set.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/indexer/mwm_set.cpp b/indexer/mwm_set.cpp index 35b6d2b9e8..d176473a9b 100644 --- a/indexer/mwm_set.cpp +++ b/indexer/mwm_set.cpp @@ -123,7 +123,8 @@ pair<MwmSet::MwmHandle, MwmSet::RegResult> MwmSet::RegisterImpl(LocalCountryFile // This function can throw an exception for a bad mwm file. if (!GetVersion(localFile, *info)) - return make_pair(MwmHandle(), RegResult::BadFile); + return make_pair(MwmHandle(), RegResult::UnsupportedFileFormat); + info->SetStatus(MwmInfo::STATUS_REGISTERED); info->m_file = localFile; string const name = localFile.GetCountryName(); @@ -315,5 +316,7 @@ string DebugPrint(MwmSet::RegResult result) return "VersionTooOld"; case MwmSet::RegResult::BadFile: return "BadFile"; + case MwmSet::RegResult::UnsupportedFileFormat: + return "UnsupportedFileFormat"; } } |