Add explicit

This commit is contained in:
Jonas Kvinge
2020-04-07 16:49:15 +02:00
parent 3efc496c41
commit 21b2193cd0
199 changed files with 337 additions and 342 deletions

View File

@@ -31,7 +31,7 @@ class QSqlDatabase;
// Rolls back the transaction if the object goes out of scope before Commit() is called.
class ScopedTransaction : boost::noncopyable {
public:
ScopedTransaction(QSqlDatabase *db);
explicit ScopedTransaction(QSqlDatabase *db);
~ScopedTransaction();
void Commit();