X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fcore%2Fsqlitestorage.h;h=58ae08c8adcb84a33beae8f8c15ba9ef467e9900;hb=fcacaaf16551524c7ebb6114254d005274cc3d63;hp=f72a8391d48178c68f624684f640851a71728690;hpb=6a835281b265df6a06b7f41109ad2d449899fed0;p=quassel.git diff --git a/src/core/sqlitestorage.h b/src/core/sqlitestorage.h index f72a8391..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); - qint64 _maxId; + qint64 _maxId{0}; };