Hey everyone,
I was wondering if anyone could tell me the difference between
and:
Is there any advantage one way or the other for either approach to initializing member pointers in the constructor?
Thanks
I was wondering if anyone could tell me the difference between
Code:
ClearDialog::ClearDialog():
m_pIDTextCtrl(NULL),
m_pDispatchComboBox(NULL),
m_pCauseComboBox(NULL),
m_pCureComboBox(NULL),
m_pTextBox(NULL)
{
}
and:
Code:
ClearDialog::ClearDialog()
{
m_pIDTextCtrl = NULL;
m_pDispatchComboBox = NULL;
m_pCauseComboBox = NULL;
m_pCureComboBox = NULL;
m_pTextBox = NULL;
}
Is there any advantage one way or the other for either approach to initializing member pointers in the constructor?
Thanks