From: Stefan Csomor Date: Tue, 9 Sep 2003 16:46:26 +0000 (+0000) Subject: const ptr fix X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/69efd83d47fb946b7e1df6b0c6ffa23f3f29d24e?ds=sidebyside const ptr fix git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23449 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/mac/carbon/notebmac.cpp b/src/mac/carbon/notebmac.cpp index 150fe2e87b..6fd2eca381 100644 --- a/src/mac/carbon/notebmac.cpp +++ b/src/mac/carbon/notebmac.cpp @@ -450,7 +450,7 @@ void wxNotebook::MacSetupTabs() // afterwards Unregister it (IconRef is ref counted, so it will stay on the tab even if we // unregister it) in case this will ever lead to having the same icon everywhere add some kind // of static counter - wxBitmap* bmap = GetImageList()->GetBitmap( GetPageImage(ii ) ) ; + const wxBitmap* bmap = GetImageList()->GetBitmap( GetPageImage(ii ) ) ; if ( bmap ) { wxBitmap scaledBitmap ; diff --git a/src/mac/notebmac.cpp b/src/mac/notebmac.cpp index 150fe2e87b..6fd2eca381 100644 --- a/src/mac/notebmac.cpp +++ b/src/mac/notebmac.cpp @@ -450,7 +450,7 @@ void wxNotebook::MacSetupTabs() // afterwards Unregister it (IconRef is ref counted, so it will stay on the tab even if we // unregister it) in case this will ever lead to having the same icon everywhere add some kind // of static counter - wxBitmap* bmap = GetImageList()->GetBitmap( GetPageImage(ii ) ) ; + const wxBitmap* bmap = GetImageList()->GetBitmap( GetPageImage(ii ) ) ; if ( bmap ) { wxBitmap scaledBitmap ;