summaryrefslogtreecommitdiffhomepage
path: root/migration/migration.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-09-09 20:47:38 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-09-09 20:47:47 +0200
commite4ea50f431e8efbfb572c441d00d5539db516820 (patch)
tree3134ec2c8b895fb43e3312cf665244e71e43a77e /migration/migration.hpp
parent919bbd2aad26bd73b0dfbc9243ccb7d89fdb8fb1 (diff)
migration: type aliases confuse IDE so let's not
Diffstat (limited to 'migration/migration.hpp')
-rw-r--r--migration/migration.hpp10
1 files changed, 3 insertions, 7 deletions
diff --git a/migration/migration.hpp b/migration/migration.hpp
index 73ab2d53..6e95cca3 100644
--- a/migration/migration.hpp
+++ b/migration/migration.hpp
@@ -13,19 +13,15 @@ class registrator;
namespace detail {
class migrator final
{
- using mm = migration*;
- template<typename t> using vec_ = std::vector<t>;
- using vstr = vec_<QString>;
- using vec = vec_<mm>;
- static vec& migrations();
+ static std::vector<migration*>& migrations();
static QString last_migration_time();
static QString time_after_migrations();
static void set_last_migration_time(const QString& val);
migrator() = delete;
- static vec sorted_migrations();
+ static std::vector<migration*> sorted_migrations();
static int to_int(const QString& str, bool& ok);
public:
- static vstr run();
+ static std::vector<QString> run();
static void register_migration(migration* m);
static void mark_config_as_not_needing_migration();
};