diff --git a/src/generic/datectlg.cpp b/src/generic/datectlg.cpp index 7f41559e43..c0796da004 100644 --- a/src/generic/datectlg.cpp +++ b/src/generic/datectlg.cpp @@ -147,10 +147,8 @@ public: } private: - bool ParseDateTime(const wxString& s, wxDateTime* pDt) + bool ParseDateTime(const wxString& s, wxDateTime* pDt) const { - wxASSERT(pDt); - pDt->ParseFormat(s, m_format); if ( !pDt->IsValid() ) return false;