X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/683e36bcccfdd389c708b9771563d5dd90f57e9c..dd12ce22d806e6a9c40cf7bdfddbb237cd55b0ca:/src/mac/carbon/checklst.cpp?ds=sidebyside diff --git a/src/mac/carbon/checklst.cpp b/src/mac/carbon/checklst.cpp index f321e7718f..9b2278c116 100644 --- a/src/mac/carbon/checklst.cpp +++ b/src/mac/carbon/checklst.cpp @@ -73,7 +73,7 @@ static pascal void DataBrowserItemNotificationProc(ControlRef browser, DataBrow if ( ref ) { wxCheckListBox* list = wxDynamicCast( (wxObject*) ref , wxCheckListBox ) ; - size_t i = itemID - 1 ; + int i = itemID - 1 ; if (i >= 0 && i < list->GetCount() ) { bool trigger = false ; @@ -132,7 +132,7 @@ static pascal OSStatus ListBoxGetSetItemData(ControlRef browser, if ( ref ) { wxCheckListBox* list = wxDynamicCast( (wxObject*) ref , wxCheckListBox ) ; - size_t i = itemID - 1 ; + int i = itemID - 1 ; if (i >= 0 && i < list->GetCount() ) { wxMacCFStringHolder cf( list->GetString(i) , list->GetFont().GetEncoding() ) ; @@ -148,7 +148,7 @@ static pascal OSStatus ListBoxGetSetItemData(ControlRef browser, if ( ref ) { wxCheckListBox* list = wxDynamicCast( (wxObject*) ref , wxCheckListBox ) ; - size_t i = itemID - 1 ; + int i = itemID - 1 ; if (i >= 0 && i < list->GetCount() ) { verify_noerr( ::SetDataBrowserItemDataButtonValue( itemData , list->IsChecked( i ) ? kThemeButtonOn : kThemeButtonOff ) ) ; @@ -177,7 +177,7 @@ static pascal OSStatus ListBoxGetSetItemData(ControlRef browser, if ( ref ) { wxCheckListBox* list = wxDynamicCast( (wxObject*) ref , wxCheckListBox ) ; - size_t i = itemID - 1 ; + int i = itemID - 1 ; if (i >= 0 && i < list->GetCount() ) { // we have to change this behind the back, since Check() would be triggering another update round