compilation fix after NULL cast removal; also used it to get rid of an ugly OnTimerEvent(*(wxTimerEvent *)NULL) call
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58229 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -73,10 +73,13 @@ public:
|
|||||||
static int GetFeatures() { return wxComboCtrlFeatures::All; }
|
static int GetFeatures() { return wxComboCtrlFeatures::All; }
|
||||||
|
|
||||||
#if wxUSE_COMBOCTRL_POPUP_ANIMATION
|
#if wxUSE_COMBOCTRL_POPUP_ANIMATION
|
||||||
void OnTimerEvent( wxTimerEvent& event );
|
void OnTimerEvent(wxTimerEvent& WXUNUSED(event)) { DoTimerEvent(); }
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
void DoTimerEvent();
|
||||||
|
|
||||||
virtual bool AnimateShow( const wxRect& rect, int flags );
|
virtual bool AnimateShow( const wxRect& rect, int flags );
|
||||||
#endif
|
#endif // wxUSE_COMBOCTRL_POPUP_ANIMATION
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
|
@@ -763,7 +763,7 @@ static wxUint32 GetUserPreferencesMask()
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if wxUSE_COMBOCTRL_POPUP_ANIMATION
|
#if wxUSE_COMBOCTRL_POPUP_ANIMATION
|
||||||
void wxComboCtrl::OnTimerEvent( wxTimerEvent& WXUNUSED(event) )
|
void wxComboCtrl::DoTimerEvent()
|
||||||
{
|
{
|
||||||
bool stopTimer = false;
|
bool stopTimer = false;
|
||||||
|
|
||||||
@@ -831,7 +831,7 @@ bool wxComboCtrl::AnimateShow( const wxRect& rect, int flags )
|
|||||||
m_animTimer.SetOwner( this, wxID_ANY );
|
m_animTimer.SetOwner( this, wxID_ANY );
|
||||||
m_animTimer.Start( COMBOBOX_ANIMATION_RESOLUTION, wxTIMER_CONTINUOUS );
|
m_animTimer.Start( COMBOBOX_ANIMATION_RESOLUTION, wxTIMER_CONTINUOUS );
|
||||||
|
|
||||||
OnTimerEvent(*(NULL)); // Event is never used, so we can give NULL
|
DoTimerEvent();
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user