Reduced deprecation warning frequency
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38343 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -97,15 +97,8 @@ class WXDLLEXPORT wxMacPortSaver
|
|||||||
DECLARE_NO_COPY_CLASS(wxMacPortSaver)
|
DECLARE_NO_COPY_CLASS(wxMacPortSaver)
|
||||||
|
|
||||||
public:
|
public:
|
||||||
wxMacPortSaver( GrafPtr port )
|
wxMacPortSaver( GrafPtr port );
|
||||||
{
|
~wxMacPortSaver();
|
||||||
::GetPort( &m_port ) ;
|
|
||||||
::SetPort( port ) ;
|
|
||||||
}
|
|
||||||
~wxMacPortSaver()
|
|
||||||
{
|
|
||||||
::SetPort( m_port ) ;
|
|
||||||
}
|
|
||||||
private :
|
private :
|
||||||
GrafPtr m_port ;
|
GrafPtr m_port ;
|
||||||
} ;
|
} ;
|
||||||
|
@@ -1584,4 +1584,15 @@ CGColorSpaceRef wxMacGetGenericRGBColorSpace()
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
wxMacPortSaver::wxMacPortSaver( GrafPtr port )
|
||||||
|
{
|
||||||
|
::GetPort( &m_port ) ;
|
||||||
|
::SetPort( port ) ;
|
||||||
|
}
|
||||||
|
|
||||||
|
wxMacPortSaver::~wxMacPortSaver()
|
||||||
|
{
|
||||||
|
::SetPort( m_port ) ;
|
||||||
|
}
|
||||||
|
|
||||||
#endif // wxUSE_GUI
|
#endif // wxUSE_GUI
|
||||||
|
Reference in New Issue
Block a user