projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
modernize: Use ranged-for loops in some obvious cases
[quassel.git]
/
src
/
core
/
sqlitestorage.h
diff --git
a/src/core/sqlitestorage.h
b/src/core/sqlitestorage.h
index
f72a839
..
58ae08c
100644
(file)
--- a/
src/core/sqlitestorage.h
+++ b/
src/core/sqlitestorage.h
@@
-31,8
+31,7
@@
class SqliteStorage : public AbstractSqlStorage
Q_OBJECT
public:
Q_OBJECT
public:
- SqliteStorage(QObject *parent = 0);
- ~SqliteStorage() override;
+ SqliteStorage(QObject *parent = nullptr);
std::unique_ptr<AbstractSqlMigrationReader> createMigrationReader() override;
std::unique_ptr<AbstractSqlMigrationReader> createMigrationReader() override;
@@
-121,7
+120,6
@@
public slots:
/* Sysident handling */
QMap<UserId, QString> getAllAuthUserNames() override;
/* Sysident handling */
QMap<UserId, QString> getAllAuthUserNames() override;
- QString getAuthUserName(UserId user) override;
protected:
void setConnectionProperties(const QVariantMap &properties,
protected:
void setConnectionProperties(const QVariantMap &properties,
@@
-175,7
+173,7
@@
public:
bool prepareQuery(MigrationObject mo) override;
bool prepareQuery(MigrationObject mo) override;
-
int
stepSize() { return 50000; }
+
qint64
stepSize() { return 50000; }
protected:
bool transaction() override { return logDb().transaction(); }
protected:
bool transaction() override { return logDb().transaction(); }
@@
-184,7
+182,7
@@
protected:
private:
void setMaxId(MigrationObject mo);
private:
void setMaxId(MigrationObject mo);
- qint64 _maxId;
+ qint64 _maxId
{0}
;
};
};