diff options
Diffstat (limited to 'src/library/queryutil.h')
-rw-r--r-- | src/library/queryutil.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/library/queryutil.h b/src/library/queryutil.h index a0742ac83b..bcc10b8b98 100644 --- a/src/library/queryutil.h +++ b/src/library/queryutil.h @@ -10,7 +10,7 @@ class ScopedTransaction { public: - explicit ScopedTransaction(QSqlDatabase& database) : + explicit ScopedTransaction(const QSqlDatabase& database) : m_database(database), m_active(false) { if (!transaction()) { @@ -62,7 +62,7 @@ class ScopedTransaction { return result; } private: - QSqlDatabase& m_database; + QSqlDatabase m_database; bool m_active; }; |