- 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;
+ 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 &&
+ refData->m_alpha == that_refData->m_alpha;