revert my last change

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20995 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2003-06-07 15:54:41 +00:00
parent a741b4e4bd
commit ca01f8dfe5
2 changed files with 4 additions and 4 deletions

View File

@@ -195,8 +195,8 @@ void wxChoice::DoSetItemClientData( int n, void* clientData )
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,
"invalid index in wxChoice::GetClientData" );
return (void *)m_datas[n];
}

View File

@@ -195,8 +195,8 @@ void wxChoice::DoSetItemClientData( int n, void* clientData )
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,
"invalid index in wxChoice::GetClientData" );
return (void *)m_datas[n];
}