From 54ce9ebbd667147a18f119177422ce25011fe113 Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Fri, 24 Mar 2006 13:01:19 +0000 Subject: [PATCH] Reduced deprecation warning frequency git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38343 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/mac/carbon/private.h | 11 ++--------- src/mac/carbon/utils.cpp | 11 +++++++++++ 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/include/wx/mac/carbon/private.h b/include/wx/mac/carbon/private.h index 9e57b5f43a..3f20c40076 100644 --- a/include/wx/mac/carbon/private.h +++ b/include/wx/mac/carbon/private.h @@ -97,15 +97,8 @@ class WXDLLEXPORT wxMacPortSaver DECLARE_NO_COPY_CLASS(wxMacPortSaver) public: - wxMacPortSaver( GrafPtr port ) - { - ::GetPort( &m_port ) ; - ::SetPort( port ) ; - } - ~wxMacPortSaver() - { - ::SetPort( m_port ) ; - } + wxMacPortSaver( GrafPtr port ); + ~wxMacPortSaver(); private : GrafPtr m_port ; } ; diff --git a/src/mac/carbon/utils.cpp b/src/mac/carbon/utils.cpp index 0a18f998c2..24cf97cdd4 100644 --- a/src/mac/carbon/utils.cpp +++ b/src/mac/carbon/utils.cpp @@ -1584,4 +1584,15 @@ CGColorSpaceRef wxMacGetGenericRGBColorSpace() } #endif +wxMacPortSaver::wxMacPortSaver( GrafPtr port ) +{ + ::GetPort( &m_port ) ; + ::SetPort( port ) ; +} + +wxMacPortSaver::~wxMacPortSaver() +{ + ::SetPort( m_port ) ; +} + #endif // wxUSE_GUI -- 2.45.2