Just silently return NULL like the other ports
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20973 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -192,8 +192,9 @@ void wxChoice::DoSetItemClientData( int n, void* clientData )
|
||||
|
||||
void *wxChoice::DoGetItemClientData(int n) const
|
||||
{
|
||||
wxCHECK_MSG( n >= 0 && (size_t)n < m_datas.GetCount(), NULL,
|
||||
wxT("invalid index in wxChoice::GetClientData") );
|
||||
if ( n < 0 || (size_t)n >= m_datas.GetCount() )
|
||||
return (void*)NULL;
|
||||
|
||||
return (void *)m_datas[n];
|
||||
}
|
||||
|
||||
|
@@ -192,8 +192,9 @@ void wxChoice::DoSetItemClientData( int n, void* clientData )
|
||||
|
||||
void *wxChoice::DoGetItemClientData(int n) const
|
||||
{
|
||||
wxCHECK_MSG( n >= 0 && (size_t)n < m_datas.GetCount(), NULL,
|
||||
wxT("invalid index in wxChoice::GetClientData") );
|
||||
if ( n < 0 || (size_t)n >= m_datas.GetCount() )
|
||||
return (void*)NULL;
|
||||
|
||||
return (void *)m_datas[n];
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user