C++98 compatibility: Variable initialization in TransactionRaii class.
[toast/confclerk.git] / src / sql / sqlengine.h
index 68d0679c1daa07725e8123e14f519f3d0208e123..137c070a0f78014362640c08f43df5a3cb38b2ee 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();
     }