]> git.saurik.com Git - wxWidgets.git/blobdiff - src/osx/carbon/dcscreen.cpp
use translatable strings as format template for menu lines
[wxWidgets.git] / src / osx / carbon / dcscreen.cpp
index 3b9e51541adc50258516ecd0b0fa8667b4bd5f72..cbd90382e90d0ea553585f4c83bd878cc216aa2b 100644 (file)
@@ -56,8 +56,7 @@ wxScreenDCImpl::wxScreenDCImpl( wxDC *owner ) :
 
 wxScreenDCImpl::~wxScreenDCImpl()
 {
-    delete m_graphicContext;
-    m_graphicContext = NULL;
+    wxDELETE(m_graphicContext);
 #if wxOSX_USE_COCOA_OR_IPHONE
 #else
     DisposeWindow((WindowRef) m_overlayWindow );
@@ -95,7 +94,7 @@ wxBitmap wxScreenDCImpl::DoGetAsBitmap(const wxRect *subrect) const
     wxASSERT_MSG(image, wxT("wxScreenDC::GetAsBitmap - unable to get screenshot."));
 
     CGContextDrawImage(context, srcRect, image);
-    
+
     CGImageRelease(image);
 
     CGContextRestoreGState(context);