C++98 compatibility: Variable initialization in TransactionRaii class.
authorPhilipp Spitzer <philipp@spitzer.priv.at>
Mon, 2 Oct 2017 20:19:57 +0000 (22:19 +0200)
committerPhilipp Spitzer <philipp@spitzer.priv.at>
Mon, 2 Oct 2017 21:03:50 +0000 (23:03 +0200)
src/sql/sqlengine.h

index 68d0679..137c070 100644 (file)
@@ -85,9 +85,9 @@ class SqlEngine : public QObject {
 
 class TransactionRaii {
     SqlEngine& sqlEngine;
-    bool committed = false;
+    bool committed;
 public:
-    TransactionRaii(SqlEngine& sqlEngine): sqlEngine(sqlEngine) {
+    TransactionRaii(SqlEngine& sqlEngine): sqlEngine(sqlEngine), committed(false) {
         sqlEngine.beginTransaction();
     }