X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e40298d54ecd5b109222a7c60aa2ef084a304d69..3d640cfc403ebc5cd96c95f325057b709550c4d1:/src/mac/carbon/macnotfy.cpp diff --git a/src/mac/carbon/macnotfy.cpp b/src/mac/carbon/macnotfy.cpp index b6a170c8ee..690f83b214 100644 --- a/src/mac/carbon/macnotfy.cpp +++ b/src/mac/carbon/macnotfy.cpp @@ -26,9 +26,9 @@ struct wxMacNotificationEvents } ; typedef struct wxMacNotificationEvents wxMacNotificationEvents ; -wxMacNotificationEvents gMacNotificationEvents ; +static wxMacNotificationEvents gMacNotificationEvents ; -ProcessSerialNumber gAppProcess ; +static ProcessSerialNumber gAppProcess ; void wxMacWakeUp() { @@ -88,7 +88,7 @@ void wxMacAddEvent( short wakeUp ) { wxMacNotificationEvents *e = (wxMacNotificationEvents *) table ; - wxASSERT_MSG( handler != NULL , "illegal notification proc ptr" ) ; + wxASSERT_MSG( handler != NULL , wxT("illegal notification proc ptr") ) ; /* this should be protected eventually */ short index = e->top++ ; @@ -112,11 +112,11 @@ void wxMacRemoveAllNotifiersForData( wxMacNotifierTableRef table , void* data ) while ( e->top != index ) { - if ( index == kMaxEvents ) - index = 0 ; if ( e->data[index] == data ) e->data[index] = NULL ; index++ ; + if ( index == kMaxEvents ) + index = 0 ; } }