X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcore%2Fsqlitestorage.h;h=58ae08c8adcb84a33beae8f8c15ba9ef467e9900;hb=714b39660fe19e7f092880019429c8da76ee2bd5;hp=9a37160a7bee2e273cc2999fe277d4499b33419a;hpb=79aa3994d78860c0b7a623a46ce44dffff988fd9;p=quassel.git diff --git a/src/core/sqlitestorage.h b/src/core/sqlitestorage.h index 9a37160a..58ae08c8 100644 --- a/src/core/sqlitestorage.h +++ b/src/core/sqlitestorage.h @@ -31,8 +31,7 @@ class SqliteStorage : public AbstractSqlStorage Q_OBJECT public: - SqliteStorage(QObject *parent = 0); - ~SqliteStorage() override; + SqliteStorage(QObject *parent = nullptr); std::unique_ptr createMigrationReader() override; @@ -121,7 +120,6 @@ public slots: /* Sysident handling */ QMap getAllAuthUserNames() override; - QString getAuthUserName(UserId user) override; protected: void setConnectionProperties(const QVariantMap &properties, @@ -175,7 +173,7 @@ public: bool prepareQuery(MigrationObject mo) override; - int stepSize() { return 50000; } + qint64 stepSize() { return 50000; } protected: bool transaction() override { return logDb().transaction(); } @@ -184,7 +182,7 @@ protected: private: void setMaxId(MigrationObject mo); - int _maxId; + qint64 _maxId{0}; };