diff options
author | vng <viktor.govako@gmail.com> | 2015-09-25 16:09:20 +0300 |
---|---|---|
committer | vng <viktor.govako@gmail.com> | 2015-09-25 17:17:51 +0300 |
commit | c56f4c20b946bf62831e917a695d4e6c7861fdd9 (patch) | |
tree | d98919a12647ac1d6e8365a60896aa4744ac12f4 /map/mwm_tests | |
parent | 7629852c751575bec7f407e2aab4fa4f3c2cde8a (diff) |
[mwm set] Do not create MwmHandle instantly after registering map.
Diffstat (limited to 'map/mwm_tests')
-rw-r--r-- | map/mwm_tests/mwm_index_test.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/map/mwm_tests/mwm_index_test.cpp b/map/mwm_tests/mwm_index_test.cpp index f2ec06de68..3b299b4d95 100644 --- a/map/mwm_tests/mwm_index_test.cpp +++ b/map/mwm_tests/mwm_index_test.cpp @@ -42,10 +42,11 @@ bool RunTest(string const & countryFileName, int lowS, int highS) auto p = src.RegisterMap(platform::LocalCountryFile::MakeForTesting(countryFileName)); if (p.second != MwmSet::RegResult::Success) return false; - MwmSet::MwmHandle const & handle = p.first; - ASSERT(handle.IsAlive(), ()); - version::Format const version = handle.GetInfo()->m_version.format; + MwmSet::MwmId const & id = p.first; + ASSERT(id.IsAlive(), ()); + + version::Format const version = id.GetInfo()->m_version.format; if (version == version::unknownFormat) return false; |