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 ;