X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/50b8a33651e5571899bfab5f72ea56cb18954def..3aa8e4ea6db0478d3bc862f59f100408bdc8732f:/src/mac/carbon/colour.cpp?ds=inline diff --git a/src/mac/carbon/colour.cpp b/src/mac/carbon/colour.cpp index 058f772d2c..4d91726650 100644 --- a/src/mac/carbon/colour.cpp +++ b/src/mac/carbon/colour.cpp @@ -38,10 +38,6 @@ void wxColour::GetRGBColor( RGBColor *col ) const col->green = (m_green << 8) + m_green; } -wxColour::~wxColour () -{ -} - wxColour& wxColour::operator=(const RGBColor& col) { InitRGBColor(col); @@ -54,9 +50,14 @@ wxColour& wxColour::operator=(CGColorRef col) return *this; } -bool wxColour::IsOk() const +wxColour& wxColour::operator=(const wxColour& col) { - return m_cgColour.get() != NULL; + m_red = col.m_red; + m_green = col.m_green; + m_blue = col.m_blue; + m_alpha = col.m_alpha; + m_cgColour = col.m_cgColour; + return *this; } void wxColour::InitRGBA (ChannelType r, ChannelType g, ChannelType b, ChannelType a)