From f87a708b143329a5b7f4e18e88967853c553082d Mon Sep 17 00:00:00 2001 From: Gilles Depeyrot Date: Tue, 8 May 2001 18:31:36 +0000 Subject: [PATCH] added const for Mac OS X compilation git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10060 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/mac/dc.h | 2 +- src/mac/carbon/dc.cpp | 2 +- src/mac/dc.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/wx/mac/dc.h b/include/wx/mac/dc.h index 9bdbaaf9f1..fcb02f65e9 100644 --- a/include/wx/mac/dc.h +++ b/include/wx/mac/dc.h @@ -51,7 +51,7 @@ extern int wxPageNumber; class WXDLLEXPORT wxMacPortSetter { public : - wxMacPortSetter( wxDC* dc ) ; + wxMacPortSetter( const wxDC* dc ) ; ~wxMacPortSetter() ; private : AGAPortHelper m_ph ; diff --git a/src/mac/carbon/dc.cpp b/src/mac/carbon/dc.cpp index 1a21092f94..8285afd1c6 100644 --- a/src/mac/carbon/dc.cpp +++ b/src/mac/carbon/dc.cpp @@ -85,7 +85,7 @@ wxDC::wxDC() m_brush = *wxWHITE_BRUSH; }; -wxMacPortSetter::wxMacPortSetter( wxDC* dc ) : +wxMacPortSetter::wxMacPortSetter( const wxDC* dc ) : m_ph( dc->m_macPort ) { wxASSERT( dc->Ok() ) ; diff --git a/src/mac/dc.cpp b/src/mac/dc.cpp index 1a21092f94..8285afd1c6 100644 --- a/src/mac/dc.cpp +++ b/src/mac/dc.cpp @@ -85,7 +85,7 @@ wxDC::wxDC() m_brush = *wxWHITE_BRUSH; }; -wxMacPortSetter::wxMacPortSetter( wxDC* dc ) : +wxMacPortSetter::wxMacPortSetter( const wxDC* dc ) : m_ph( dc->m_macPort ) { wxASSERT( dc->Ok() ) ; -- 2.50.0