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>2015-07-15 15:39:07 +0300
committerAlex Zolotarev <alex@maps.me>2015-09-23 02:57:10 +0300
commit29aa3a7d7d7c30a3024456cfb4c11c1406986dfc (patch)
treebf5259d5b09eb3acc1905712756072ba019fc634 /indexer/mwm_set.cpp
parentbe4452d03a48bb8642010ffb2c09f5198e116a81 (diff)
[mwm set] Skip mwm files with higher format.
Diffstat (limited to 'indexer/mwm_set.cpp')
-rw-r--r--indexer/mwm_set.cpp5
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";
}
}