From: Vadim Zeitlin Date: Mon, 19 Jan 2009 14:40:13 +0000 (+0000) Subject: compilation fix after NULL cast removal; also used it to get rid of an ugly OnTimerEv... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/952555f7b1af7b263fd18ec4ad6e87e14970d9b8 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 --- diff --git a/include/wx/msw/combo.h b/include/wx/msw/combo.h index cc9b35d53e..78ef4f59ef 100644 --- a/include/wx/msw/combo.h +++ b/include/wx/msw/combo.h @@ -73,10 +73,13 @@ public: static int GetFeatures() { return wxComboCtrlFeatures::All; } #if wxUSE_COMBOCTRL_POPUP_ANIMATION - void OnTimerEvent( wxTimerEvent& event ); + void OnTimerEvent(wxTimerEvent& WXUNUSED(event)) { DoTimerEvent(); } + protected: + void DoTimerEvent(); + virtual bool AnimateShow( const wxRect& rect, int flags ); -#endif +#endif // wxUSE_COMBOCTRL_POPUP_ANIMATION protected: diff --git a/src/msw/combo.cpp b/src/msw/combo.cpp index caf2fc428e..a37257ae65 100644 --- a/src/msw/combo.cpp +++ b/src/msw/combo.cpp @@ -763,7 +763,7 @@ static wxUint32 GetUserPreferencesMask() #endif #if wxUSE_COMBOCTRL_POPUP_ANIMATION -void wxComboCtrl::OnTimerEvent( wxTimerEvent& WXUNUSED(event) ) +void wxComboCtrl::DoTimerEvent() { bool stopTimer = false; @@ -831,7 +831,7 @@ bool wxComboCtrl::AnimateShow( const wxRect& rect, int flags ) m_animTimer.SetOwner( this, wxID_ANY ); m_animTimer.Start( COMBOBOX_ANIMATION_RESOLUTION, wxTIMER_CONTINUOUS ); - OnTimerEvent(*(NULL)); // Event is never used, so we can give NULL + DoTimerEvent(); return false; }