- const GdkColor& own = M_COLDATA->m_color;
- const GdkColor& other = wx_static_cast(wxColourRefData*, col.m_refData)->m_color;
- return own.red == other.red &&
- own.blue == other.blue &&
- own.green == other.green;
-}
-
-wxObjectRefData *wxColour::CreateRefData() const
-{
- return new wxColourRefData;
-}
-
-wxObjectRefData *wxColour::CloneRefData(const wxObjectRefData *data) const
-{
- return new wxColourRefData(*(wxColourRefData *)data);
+ wxColourRefData* refData = M_COLDATA;
+ wxColourRefData* that_refData = wx_static_cast(wxColourRefData*, col.m_refData);
+ return refData->m_red == that_refData->m_red &&
+ refData->m_green == that_refData->m_green &&
+ refData->m_blue == that_refData->m_blue;