Small cleanup in wxCalendarComboPopup

Make ParseDateTime() member function const (because it doesn't modify
this object at all) and remove a useless (because it wouldn't protect
from dereferencing the null pointer just below) assert.

No real changes.
This commit is contained in:
Vadim Zeitlin 2023-03-05 00:06:07 +01:00
parent 38a0a72b71
commit fb7cde39bc

View file

@ -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;