X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f189d2de1b36dcfa0aec996a64c810ccfe7dd7a3..947f3b358cae28b63c6f69af21c493cab355fb7e:/include/wx/mac/carbon/private.h diff --git a/include/wx/mac/carbon/private.h b/include/wx/mac/carbon/private.h index 69ac83f076..1964d366fb 100644 --- a/include/wx/mac/carbon/private.h +++ b/include/wx/mac/carbon/private.h @@ -269,13 +269,13 @@ private : PicHandle m_backpict ; bool m_shown ; long m_mark ; -#if wxUSE_TIMER +#if wxUSE_TIMER wxMacToolTipTimer* m_timer ; #endif wxCFStringRef m_helpTextRef ; } ; -// Quartz +// Quartz WXDLLIMPEXP_CORE void wxMacCreateBitmapButton( ControlButtonContentInfo*info , const wxBitmap& bitmap , int forceType = 0 ); WXDLLIMPEXP_CORE void wxMacReleaseBitmapButton( ControlButtonContentInfo*info ); @@ -323,7 +323,7 @@ WXDLLIMPEXP_CORE Rect wxMacGetBoundsForControl( wxWindow* window , const wxPoint ControlActionUPP GetwxMacLiveScrollbarActionProc(); -// additional optional event defines +// additional optional event defines #if MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_5 enum { @@ -419,9 +419,12 @@ public : T value; OSStatus err = GetData( inPartCode , inTag , &value ); - wxASSERT_MSG( err == noErr, - wxString::Format(wxT("GetData Failed for Part [%i] and Tag [%i]"), - inPartCode, (int)inTag) ); + if ( err != noErr ) + { + wxFAIL_MSG( wxString::Format(wxT("GetData Failed for Part [%i] and Tag [%i]"), + inPartCode, (int)inTag) ); + } + return value; } template OSStatus GetData( ResType inTag , T *data ) const