From 6b6a2263ec6e55d91219dae4bce73e99868c0c15 Mon Sep 17 00:00:00 2001 From: Gilles Depeyrot Date: Mon, 3 Nov 2003 22:22:39 +0000 Subject: [PATCH] applied SF patch #817328 to correct PMRelease calls git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@24401 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/mac/carbon/dcprint.cpp | 10 +++++----- src/mac/dcprint.cpp | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/mac/carbon/dcprint.cpp b/src/mac/carbon/dcprint.cpp index 360e54a62a..1e83aa738a 100644 --- a/src/mac/carbon/dcprint.cpp +++ b/src/mac/carbon/dcprint.cpp @@ -66,7 +66,7 @@ wxPrinterDC::wxPrinterDC(const wxPrintData& printdata) wxMessageDialog dialog( NULL , message , "", wxICON_HAND | wxOK) ; dialog.ShowModal(); #if TARGET_CARBON && PM_USE_SESSION_APIS - PMRelease( m_macPrintSessionPort ) ; + PMRelease(m_macPrintSessionPort) ; #else UMAPrClose(NULL) ; #endif @@ -109,7 +109,7 @@ wxPrinterDC::wxPrinterDC(const wxPrintData& printdata) wxMessageDialog dialog( NULL , message , "", wxICON_HAND | wxOK) ; dialog.ShowModal(); #if TARGET_CARBON && PM_USE_SESSION_APIS - PMRelease(&m_macPrintSessionPort) ; + PMRelease(m_macPrintSessionPort) ; #else UMAPrClose(NULL) ; #endif @@ -138,7 +138,7 @@ wxPrinterDC::~wxPrinterDC(void) if ( m_ok ) { #if TARGET_CARBON && PM_USE_SESSION_APIS - PMRelease(&m_macPrintSessionPort) ; + PMRelease(m_macPrintSessionPort) ; #else UMAPrClose(NULL) ; #endif @@ -184,7 +184,7 @@ bool wxPrinterDC::StartDoc( const wxString& WXUNUSED(message) ) wxMessageDialog dialog( NULL , message , "", wxICON_HAND | wxOK) ; dialog.ShowModal(); #if TARGET_CARBON && PM_USE_SESSION_APIS - PMRelease(&m_macPrintSessionPort) ; + PMRelease(m_macPrintSessionPort) ; #else UMAPrClose(NULL) ; #endif @@ -206,7 +206,7 @@ bool wxPrinterDC::StartDoc( const wxString& WXUNUSED(message) ) wxMessageDialog dialog( NULL , message , "", wxICON_HAND | wxOK) ; dialog.ShowModal(); #if TARGET_CARBON && PM_USE_SESSION_APIS - PMRelease(&m_macPrintSessionPort) ; + PMRelease(m_macPrintSessionPort) ; #else UMAPrClose(NULL) ; #endif diff --git a/src/mac/dcprint.cpp b/src/mac/dcprint.cpp index 360e54a62a..1e83aa738a 100644 --- a/src/mac/dcprint.cpp +++ b/src/mac/dcprint.cpp @@ -66,7 +66,7 @@ wxPrinterDC::wxPrinterDC(const wxPrintData& printdata) wxMessageDialog dialog( NULL , message , "", wxICON_HAND | wxOK) ; dialog.ShowModal(); #if TARGET_CARBON && PM_USE_SESSION_APIS - PMRelease( m_macPrintSessionPort ) ; + PMRelease(m_macPrintSessionPort) ; #else UMAPrClose(NULL) ; #endif @@ -109,7 +109,7 @@ wxPrinterDC::wxPrinterDC(const wxPrintData& printdata) wxMessageDialog dialog( NULL , message , "", wxICON_HAND | wxOK) ; dialog.ShowModal(); #if TARGET_CARBON && PM_USE_SESSION_APIS - PMRelease(&m_macPrintSessionPort) ; + PMRelease(m_macPrintSessionPort) ; #else UMAPrClose(NULL) ; #endif @@ -138,7 +138,7 @@ wxPrinterDC::~wxPrinterDC(void) if ( m_ok ) { #if TARGET_CARBON && PM_USE_SESSION_APIS - PMRelease(&m_macPrintSessionPort) ; + PMRelease(m_macPrintSessionPort) ; #else UMAPrClose(NULL) ; #endif @@ -184,7 +184,7 @@ bool wxPrinterDC::StartDoc( const wxString& WXUNUSED(message) ) wxMessageDialog dialog( NULL , message , "", wxICON_HAND | wxOK) ; dialog.ShowModal(); #if TARGET_CARBON && PM_USE_SESSION_APIS - PMRelease(&m_macPrintSessionPort) ; + PMRelease(m_macPrintSessionPort) ; #else UMAPrClose(NULL) ; #endif @@ -206,7 +206,7 @@ bool wxPrinterDC::StartDoc( const wxString& WXUNUSED(message) ) wxMessageDialog dialog( NULL , message , "", wxICON_HAND | wxOK) ; dialog.ShowModal(); #if TARGET_CARBON && PM_USE_SESSION_APIS - PMRelease(&m_macPrintSessionPort) ; + PMRelease(m_macPrintSessionPort) ; #else UMAPrClose(NULL) ; #endif