void *wxChoice::DoGetItemClientData(int n) const
{
- if ( n < 0 || (size_t)n >= m_datas.GetCount() )
- return (void*)NULL;
-
+ wxCHECK_MSG( n >= 0 && (size_t)n < m_datas.GetCount(), NULL,
+ wxT("invalid index in wxChoice::GetClientData") );
return (void *)m_datas[n];
}
return (wxClientData *)DoGetItemClientData(n);
}
-void wxChoice::MacHandleControlClick( WXWidget control , wxInt16 controlpart )
+void wxChoice::MacHandleControlClick( WXWidget control , wxInt16 controlpart , bool WXUNUSED(mouseStillDown))
{
wxCommandEvent event(wxEVT_COMMAND_CHOICE_SELECTED, m_windowId );
int n = GetSelection();