Commit 1b30204e authored by msameer's avatar msameer

[style] fix indentation

parent df61e147
......@@ -49,19 +49,19 @@ template <> bool compareIdentity<TransferDBRecord>(
class QSqlDatabaseWrapper
{
public:
QSqlDatabaseWrapper(const QSqlDatabase& db) : m_db(db) {}
~QSqlDatabaseWrapper() {
QString name = m_db.connectionName();
m_db = QSqlDatabase(); // Drop our last reference.
if (!name.isEmpty()) {
QSqlDatabase::removeDatabase(name);
QSqlDatabaseWrapper(const QSqlDatabase& db) : m_db(db) {}
~QSqlDatabaseWrapper() {
QString name = m_db.connectionName();
m_db = QSqlDatabase(); // Drop our last reference.
if (!name.isEmpty()) {
QSqlDatabase::removeDatabase(name);
}
}
}
QSqlDatabase& database() { return m_db; }
QSqlDatabase& database() { return m_db; }
private:
QSqlDatabase m_db;
QSqlDatabase m_db;
};
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