diff options
author | Uwe Klotz <uwe_klotz@web.de> | 2017-06-04 17:58:50 +0200 |
---|---|---|
committer | Uwe Klotz <uwe_klotz@web.de> | 2017-06-12 07:30:17 +0200 |
commit | bb5534f811976535815d69fd564af4c748f22ef0 (patch) | |
tree | e372518972f4ba7975d2d3c420d9948892417432 /src/library | |
parent | e0817dcb6d1d28771d17f5f4197b5bd8125c0177 (diff) |
Do not store reference in member variable
QSqlDatabase uses implicit sharing behind the scenes
Diffstat (limited to 'src/library')
-rw-r--r-- | src/library/queryutil.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library/queryutil.h b/src/library/queryutil.h index bcc10b8b98..e7ab94cdfe 100644 --- a/src/library/queryutil.h +++ b/src/library/queryutil.h @@ -94,7 +94,7 @@ class FieldEscaper final { } } - const QSqlDatabase& m_database; + QSqlDatabase m_database; mutable QSqlField m_stringField; }; |