No real changes, just make wxColour::OSXGetNSColor() const.
There is no reason to not allow calling this method on const wxColour objects. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67068 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -60,7 +60,7 @@ public:
|
||||
#endif
|
||||
#if wxOSX_USE_COCOA
|
||||
wxColour(WX_NSColor color);
|
||||
WX_NSColor OSXGetNSColor();
|
||||
WX_NSColor OSXGetNSColor() const;
|
||||
#endif
|
||||
wxColour& operator=(CGColorRef col);
|
||||
wxColour& operator=(const wxColour& col);
|
||||
|
@@ -40,7 +40,7 @@ wxColour::wxColour(WX_NSColor col)
|
||||
InitFromComponents(components, noComp);
|
||||
}
|
||||
|
||||
WX_NSColor wxColour::OSXGetNSColor()
|
||||
WX_NSColor wxColour::OSXGetNSColor() const
|
||||
{
|
||||
return [NSColor colorWithDeviceRed:m_red / 255.0 green:m_green / 255.0 blue:m_blue / 255.0 alpha:m_alpha / 255.0];
|
||||
}
|
||||
|
Reference in New Issue
Block a user