git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24720
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
wxCHECK(maskRep,false);
// We need the source NSBitmapImageRep to detemine its pixel format
- NSBitmapImageRep *srcBitmapRep = ((wxBitmapRefData*)bitmap.GetRefData())->m_cocoaNSBitmapImageRep;
+ NSBitmapImageRep *srcBitmapRep = const_cast<wxBitmap&>(bitmap).GetNSBitmapImageRep();
wxCHECK_MSG(srcBitmapRep,false,"Can't create mask for an uninitialized bitmap");
// Get a pointer to the destination data