From: Kevin Hock Date: Mon, 28 Feb 2005 02:24:35 +0000 (+0000) Subject: Casting grouping (Get/SetNativeContext), fixes 10.2 compilation X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/626fd619040da4d81db610c6042cc3c427250255?ds=inline Casting grouping (Get/SetNativeContext), fixes 10.2 compilation git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32446 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/mac/carbon/dcmemory.cpp b/src/mac/carbon/dcmemory.cpp index 8e979247a9..a1f563080a 100644 --- a/src/mac/carbon/dcmemory.cpp +++ b/src/mac/carbon/dcmemory.cpp @@ -52,7 +52,7 @@ wxMemoryDC::~wxMemoryDC() { #if wxMAC_USE_CORE_GRAPHICS m_selected.EndRawAccess() ; - CGContextRef bmCtx = (wxMacCGContext*)(m_graphicContext)->GetNativeContext() ; + CGContextRef bmCtx = ((wxMacCGContext*)(m_graphicContext))->GetNativeContext() ; delete m_graphicContext ; m_graphicContext = NULL ; CGContextRelease( bmCtx ) ; @@ -68,7 +68,7 @@ void wxMemoryDC::SelectObject( const wxBitmap& bitmap ) { #if wxMAC_USE_CORE_GRAPHICS m_selected.EndRawAccess() ; - CGContextRef bmCtx = (wxMacCGContext*)(m_graphicContext)->GetNativeContext() ; + CGContextRef bmCtx = ((wxMacCGContext*)(m_graphicContext))->GetNativeContext() ; delete m_graphicContext ; m_graphicContext = NULL ; CGContextRelease( bmCtx ) ; diff --git a/src/mac/carbon/dcprint.cpp b/src/mac/carbon/dcprint.cpp index 5a28605145..49b5ba7b2f 100644 --- a/src/mac/carbon/dcprint.cpp +++ b/src/mac/carbon/dcprint.cpp @@ -361,7 +361,7 @@ wxPrinterDC::~wxPrinterDC(void) #if wxMAC_USE_CORE_GRAPHICS void wxPrinterDC::MacSetCGContext( void * cg ) { - (wxMacCGContext*)(m_graphicContext)->SetNativeContext( (CGContextRef) cg ) ; + ((wxMacCGContext*)(m_graphicContext))->SetNativeContext( (CGContextRef) cg ) ; m_graphicContext->SetPen( m_pen ) ; m_graphicContext->SetBrush( m_brush ) ; } diff --git a/src/mac/carbon/metafile.cpp b/src/mac/carbon/metafile.cpp index 5367d10d04..04c45ae760 100644 --- a/src/mac/carbon/metafile.cpp +++ b/src/mac/carbon/metafile.cpp @@ -168,7 +168,7 @@ bool wxMetaFile::Play(wxDC *dc) { #if wxMAC_USE_CORE_GRAPHICS QDPictRef cgPictRef = M_METAFILEDATA->m_qdPictRef ; - CGContextRef cg = (wxMacCGContext*)(dc->GetGraphicContext())->GetNativeContext() ; + CGContextRef cg = ((wxMacCGContext*)(dc->GetGraphicContext()))->GetNativeContext() ; CGRect bounds = QDPictGetBounds( cgPictRef ) ; CGContextSaveGState(cg);