// headers & declarations
// ============================================================================
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
#pragma implementation "checklst.h"
#endif
-#include "wx/defs.h"
+#include "wx/wxprec.h"
#if wxUSE_CHECKLISTBOX
if ( ref )
{
wxCheckListBox* list = wxDynamicCast( (wxObject*) ref , wxCheckListBox ) ;
- size_t i = itemID - 1 ;
- if (i >= 0 && i < (size_t) list->GetCount() )
+ int i = itemID - 1 ;
+ if (i >= 0 && i < list->GetCount() )
{
bool trigger = false ;
wxCommandEvent event(
if ( ref )
{
wxCheckListBox* list = wxDynamicCast( (wxObject*) ref , wxCheckListBox ) ;
- size_t i = itemID - 1 ;
- if (i >= 0 && i < (size_t) list->GetCount() )
+ int i = itemID - 1 ;
+ if (i >= 0 && i < list->GetCount() )
{
wxMacCFStringHolder cf( list->GetString(i) , list->GetFont().GetEncoding() ) ;
verify_noerr( ::SetDataBrowserItemDataText( itemData , cf ) ) ;
if ( ref )
{
wxCheckListBox* list = wxDynamicCast( (wxObject*) ref , wxCheckListBox ) ;
- size_t i = itemID - 1 ;
- if (i >= 0 && i < (size_t) list->GetCount() )
+ int i = itemID - 1 ;
+ if (i >= 0 && i < list->GetCount() )
{
verify_noerr( ::SetDataBrowserItemDataButtonValue( itemData , list->IsChecked( i ) ? kThemeButtonOn : kThemeButtonOff ) ) ;
err = noErr ;
if ( ref )
{
wxCheckListBox* list = wxDynamicCast( (wxObject*) ref , wxCheckListBox ) ;
- size_t i = itemID - 1 ;
- if (i >= 0 && i < (size_t) list->GetCount() )
+ 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
bool newVal = !list->IsChecked( i ) ;