Casting fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26854 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
9c9aec6143
commit
469d8d5dbb
@ -71,7 +71,7 @@ static pascal void DataBrowserItemNotificationProc(ControlRef browser, DataBrow
|
||||
long ref = GetControlReference( browser ) ;
|
||||
if ( ref )
|
||||
{
|
||||
wxListBox* list = wxDynamicCast( ref , wxListBox ) ;
|
||||
wxListBox* list = wxDynamicCast( (wxObject*) ref , wxListBox ) ;
|
||||
for ( size_t i = 0 ; i < list->m_idArray.GetCount() ; ++i )
|
||||
if ( list->m_idArray[i] == (long) itemID )
|
||||
{
|
||||
@ -128,7 +128,7 @@ static pascal OSStatus ListBoxGetSetItemData(ControlRef browser,
|
||||
long ref = GetControlReference( browser ) ;
|
||||
if ( ref )
|
||||
{
|
||||
wxListBox* list = wxDynamicCast( ref , wxListBox ) ;
|
||||
wxListBox* list = wxDynamicCast( (wxObject*) ref , wxListBox ) ;
|
||||
for ( size_t i = 0 ; i < list->m_idArray.GetCount() ; ++i )
|
||||
if ( list->m_idArray[i] == (long) itemID )
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user