Commit 1b30204e authored by msameer's avatar msameer

[style] fix indentation

parent df61e147
...@@ -49,19 +49,19 @@ template <> bool compareIdentity<TransferDBRecord>( ...@@ -49,19 +49,19 @@ template <> bool compareIdentity<TransferDBRecord>(
class QSqlDatabaseWrapper class QSqlDatabaseWrapper
{ {
public: public:
QSqlDatabaseWrapper(const QSqlDatabase& db) : m_db(db) {} QSqlDatabaseWrapper(const QSqlDatabase& db) : m_db(db) {}
~QSqlDatabaseWrapper() { ~QSqlDatabaseWrapper() {
QString name = m_db.connectionName(); QString name = m_db.connectionName();
m_db = QSqlDatabase(); // Drop our last reference. m_db = QSqlDatabase(); // Drop our last reference.
if (!name.isEmpty()) { if (!name.isEmpty()) {
QSqlDatabase::removeDatabase(name); QSqlDatabase::removeDatabase(name);
}
} }
}
QSqlDatabase& database() { return m_db; } QSqlDatabase& database() { return m_db; }
private: private:
QSqlDatabase m_db; QSqlDatabase m_db;
}; };
TransferModel::TransferModel(QObject *parent) TransferModel::TransferModel(QObject *parent)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment