From 5219c4905e0f712c478110b4766cd9bee43550c9 Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Tue, 18 Dec 2007 13:15:57 +0000 Subject: [PATCH] adding explicit copy and assignment git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50796 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/mac/carbon/colour.cpp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/src/mac/carbon/colour.cpp b/src/mac/carbon/colour.cpp index 137ff6c36d..b2a7f5884e 100644 --- a/src/mac/carbon/colour.cpp +++ b/src/mac/carbon/colour.cpp @@ -26,6 +26,15 @@ wxColour::wxColour(const RGBColor& col) InitRGBColor(col); } +wxColour::wxColour( const wxColour& col ) +{ + 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; +} + wxColour::wxColour(CGColorRef col) { InitCGColorRef(col); @@ -54,6 +63,16 @@ wxColour& wxColour::operator=(CGColorRef col) return *this; } +wxColour& wxColour::operator=(const wxColour& col) +{ + 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) { m_red = r;