diff options
author | Uwe Klotz <uwe_klotz@web.de> | 2017-05-28 11:50:50 +0200 |
---|---|---|
committer | Uwe Klotz <uwe_klotz@web.de> | 2017-06-12 07:30:17 +0200 |
commit | 31563434b6c15cba45b6ae4f3ef8b50e702b4ad3 (patch) | |
tree | afb875ca1b4b9fa3473b043fb93b53e432aeda19 /src/library/dao/analysisdao.h | |
parent | c57466ba8b47009a1d2fd5043c0beb37dfc8825b (diff) |
Avoid passing QSqlDatabase by mutable reference
...otherwise someone would be able to replace the implicitly shared
instance behind it!
Diffstat (limited to 'src/library/dao/analysisdao.h')
-rw-r--r-- | src/library/dao/analysisdao.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library/dao/analysisdao.h b/src/library/dao/analysisdao.h index 24e11e957c..0130a5a699 100644 --- a/src/library/dao/analysisdao.h +++ b/src/library/dao/analysisdao.h @@ -31,7 +31,7 @@ class AnalysisDao : public DAO { QByteArray data; }; - AnalysisDao(QSqlDatabase& database, UserSettingsPointer pConfig); + AnalysisDao(const QSqlDatabase& database, UserSettingsPointer pConfig); virtual ~AnalysisDao(); virtual void initialize(); |