mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Ensure all C++ class member raw pointers are default-initialized to nullptr.
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user