Cast both operands of ?: to (wxControl*) so BC++ compiles it

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5218 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Ove Kaaven
2000-01-03 19:31:02 +00:00
parent f2a497dcf9
commit 380d9d6297

View File

@@ -288,12 +288,12 @@ void wxCalendarCtrl::ShowCurrentControls()
wxControl *wxCalendarCtrl::GetMonthControl() const
{
return AllowMonthChange() ? m_comboMonth : m_staticMonth;
return AllowMonthChange() ? (wxControl *)m_comboMonth : (wxControl *)m_staticMonth;
}
wxControl *wxCalendarCtrl::GetYearControl() const
{
return AllowYearChange() ? m_spinYear : m_staticYear;
return AllowYearChange() ? (wxControl *)m_spinYear : (wxControl *)m_staticYear;
}
void wxCalendarCtrl::EnableYearChange(bool enable)