refactor(Core): apply clang-tidy modernize-use-default-member-init (#3827)

This commit is contained in:
Francesco Borzì
2020-12-07 20:34:06 +01:00
committed by GitHub
parent 1cf39b3d22
commit c5a35efd7b
47 changed files with 352 additions and 366 deletions

View File

@@ -22,7 +22,7 @@ class Transaction
friend class DatabaseWorkerPool;
public:
Transaction() : _cleanedUp(false) { }
Transaction() { }
~Transaction() { Cleanup(); }
void Append(PreparedStatement* statement);
@@ -36,7 +36,7 @@ protected:
std::list<SQLElementData> m_queries;
private:
bool _cleanedUp;
bool _cleanedUp{false};
};
typedef std::shared_ptr<Transaction> SQLTransaction;