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)
|
||||
|
||||
public:
|
||||
wxMacPortSaver( GrafPtr port )
|
||||
{
|
||||
::GetPort( &m_port ) ;
|
||||
::SetPort( port ) ;
|
||||
}
|
||||
~wxMacPortSaver()
|
||||
{
|
||||
::SetPort( m_port ) ;
|
||||
}
|
||||
wxMacPortSaver( GrafPtr port );
|
||||
~wxMacPortSaver();
|
||||
private :
|
||||
GrafPtr m_port ;
|
||||
} ;
|
||||
|
@@ -1584,4 +1584,15 @@ CGColorSpaceRef wxMacGetGenericRGBColorSpace()
|
||||
}
|
||||
#endif
|
||||
|
||||
wxMacPortSaver::wxMacPortSaver( GrafPtr port )
|
||||
{
|
||||
::GetPort( &m_port ) ;
|
||||
::SetPort( port ) ;
|
||||
}
|
||||
|
||||
wxMacPortSaver::~wxMacPortSaver()
|
||||
{
|
||||
::SetPort( m_port ) ;
|
||||
}
|
||||
|
||||
#endif // wxUSE_GUI
|
||||
|
Reference in New Issue
Block a user