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:
authorSergey Yershov <yershov@corp.mail.ru>2016-01-26 13:55:27 +0300
committerSergey Yershov <yershov@corp.mail.ru>2016-03-23 16:15:30 +0300
commit897691541b193c5af66836fedaef0960e410bd89 (patch)
treeec870eefdd47e48dd8642d9f904537a4c2d8c2c9 /platform
parent98d31961eea10847f3a523047f3a101635ded4ce (diff)
[Old map downloader] Review fixes
Diffstat (limited to 'platform')
-rw-r--r--platform/local_country_file_utils.cpp35
-rw-r--r--platform/local_country_file_utils.hpp5
2 files changed, 21 insertions, 19 deletions
diff --git a/platform/local_country_file_utils.cpp b/platform/local_country_file_utils.cpp
index d69827ff67..610b9d07c6 100644
--- a/platform/local_country_file_utils.cpp
+++ b/platform/local_country_file_utils.cpp
@@ -24,28 +24,29 @@
namespace platform
{
+
namespace migrate
{
- // Set of functions to support migration between different versions of MWM
- // with totaly incompatible formats.
- // 160107 - Migrate to small single file MWM
- uint32_t constexpr kRequiredVersion = 160107;
- bool NeedMigrate()
- {
- uint32_t version;
- if (!Settings::Get("LastMigration", version))
- return true;
+// Set of functions to support migration between different versions of MWM
+// with totaly incompatible formats.
+// 160107 - Migrate to small single file MWM
+uint32_t constexpr kMinRequiredVersion = 160107;
+bool NeedMigrate()
+{
+ uint32_t version;
+ if (!Settings::Get("LastMigration", version))
+ return true;
- if (version >= kRequiredVersion)
- return false;
+ if (version >= kMinRequiredVersion)
+ return false;
- return true;
- }
+ return true;
+}
- void SetMigrationFlag()
- {
- Settings::Set("LastMigration", kRequiredVersion);
- }
+void SetMigrationFlag()
+{
+ Settings::Set("LastMigration", kMinRequiredVersion);
+}
} // namespace migrate
namespace
diff --git a/platform/local_country_file_utils.hpp b/platform/local_country_file_utils.hpp
index 582b825373..b4bb6c56a8 100644
--- a/platform/local_country_file_utils.hpp
+++ b/platform/local_country_file_utils.hpp
@@ -12,10 +12,11 @@ class ModelReader;
namespace platform
{
+
namespace migrate
{
- bool NeedMigrate();
- void SetMigrationFlag();
+bool NeedMigrate();
+void SetMigrationFlag();
}
// Removes all files downloader creates during downloading of a country.