diff options
Diffstat (limited to 'migration/migration.cpp')
-rw-r--r-- | migration/migration.cpp | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/migration/migration.cpp b/migration/migration.cpp index 45965bee..d4ec6493 100644 --- a/migration/migration.cpp +++ b/migration/migration.cpp @@ -24,9 +24,7 @@ using namespace options::globals; // individual migrations are run in the UI thread. they can be interactive if necessary. -namespace migrations { - -namespace detail { +namespace migrations::detail { static std::vector<mptr> migration_list; static std::vector<mfun> migration_thunks; @@ -174,29 +172,34 @@ std::vector<QString> migrator::run() done.push_back(m->name()); } } - mark_config_as_not_needing_migration(); + mark_profile_as_not_needing_migration(); }); return done; } -} +} // ns migrations::detail + +namespace migrations { + +migration::migration() = default; +migration::~migration() = default; -} // ns +} // ns migrations std::vector<QString> run_migrations() { return migrations::detail::migrator::run(); } -void mark_config_as_not_needing_migration() +void mark_profile_as_not_needing_migration() { using m = migrations::detail::migrator; - m::mark_config_as_not_needing_migration(); + m::mark_profile_as_not_needing_migration(); } -void migrations::detail::migrator::mark_config_as_not_needing_migration() +void migrations::detail::migrator::mark_profile_as_not_needing_migration() { set_last_migration_time(time_after_migrations()); } |