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:
parent
38a0a72b71
commit
fb7cde39bc
1 changed files with 1 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue