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-23 19:04:03 +0300
committerAlex Zolotarev <alex@maps.me>2015-09-23 03:01:29 +0300
commita19239fa847f1a5d7e95deb1aeacef80799b3ed9 (patch)
treeefded0d3e963222829d5315d050752bf71dff218 /map/feature_vec_model.cpp
parent57921f1e7c4f2932b41d423f381bf630ff705b34 (diff)
Simplified routing when GetCountryName() needed.
Diffstat (limited to 'map/feature_vec_model.cpp')
-rw-r--r--map/feature_vec_model.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/map/feature_vec_model.cpp b/map/feature_vec_model.cpp
index fd3b1015cc..f28c8e65e1 100644
--- a/map/feature_vec_model.cpp
+++ b/map/feature_vec_model.cpp
@@ -47,13 +47,12 @@ void FeaturesFetcher::InitClassificator()
pair<MwmSet::MwmHandle, MwmSet::RegResult> FeaturesFetcher::RegisterMap(
LocalCountryFile const & localFile)
{
- string const countryFileName = localFile.GetCountryName();
try
{
auto result = m_multiIndex.RegisterMap(localFile);
if (result.second != MwmSet::RegResult::Success)
{
- LOG(LWARNING, ("Can't add map", countryFileName,
+ LOG(LWARNING, ("Can't add map", localFile.GetCountryName(),
"Probably it's already added or has newer data version."));
return result;
}
@@ -62,9 +61,9 @@ pair<MwmSet::MwmHandle, MwmSet::RegResult> FeaturesFetcher::RegisterMap(
m_rect.Add(handle.GetInfo()->m_limitRect);
return result;
}
- catch (RootException const & e)
+ catch (RootException const & ex)
{
- LOG(LERROR, ("IO error while adding ", countryFileName, " map. ", e.what()));
+ LOG(LERROR, ("IO error while adding ", localFile.GetCountryName(), " map. ", ex.Msg()));
return make_pair(MwmSet::MwmHandle(), MwmSet::RegResult::BadFile);
}
}