Ensure all C++ class member raw pointers are default-initialized to nullptr.

This commit is contained in:
John Ralls
2018-08-10 12:21:28 -07:00
parent 1e87d069f6
commit 2f861bc2a4
7 changed files with 15 additions and 15 deletions

View File

@@ -53,7 +53,7 @@ public:
void add_where_cond(QofIdTypeConst, const PairVec&) override;
private:
const GncSqlConnection* m_conn;
const GncSqlConnection* m_conn = nullptr;
std::string m_sql;
};

View File

@@ -86,7 +86,7 @@ public:
const ColVec& info_vec) const noexcept;
bool drop_indexes() noexcept;
private:
QofBackend* m_qbe;
QofBackend* m_qbe = nullptr;
dbi_conn m_conn;
std::unique_ptr<GncDbiProvider> m_provider;
/** Used by the error handler routines to flag if the connection is ok to

View File

@@ -63,11 +63,11 @@ protected:
return dbi_result_field_is_null(m_inst->m_dbi_result, col);
}
private:
GncDbiSqlResult* m_inst;
GncDbiSqlResult* m_inst = nullptr;
};
private:
const GncDbiSqlConnection* m_conn;
const GncDbiSqlConnection* m_conn = nullptr;
dbi_result m_dbi_result;
IteratorImpl m_iter;
GncSqlRow m_row;