wxColourData::operator=() should return wxColourData&, not void
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50058 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
8cf304f81b
commit
5cd0202bdc
@ -37,7 +37,7 @@ public:
|
||||
|
||||
wxColourData();
|
||||
wxColourData(const wxColourData& data);
|
||||
void operator=(const wxColourData&);
|
||||
wxColourData& operator=(const wxColourData& data);
|
||||
virtual ~wxColourData();
|
||||
|
||||
void SetChooseFull(bool flag) { m_chooseFull = flag; }
|
||||
|
@ -78,7 +78,7 @@ wxColourData::wxColourData()
|
||||
}
|
||||
|
||||
wxColourData::wxColourData(const wxColourData& data)
|
||||
: wxObject()
|
||||
: wxObject()
|
||||
{
|
||||
(*this) = data;
|
||||
}
|
||||
@ -102,13 +102,15 @@ wxColour wxColourData::GetCustomColour(int i)
|
||||
return m_custColours[i];
|
||||
}
|
||||
|
||||
void wxColourData::operator=(const wxColourData& data)
|
||||
wxColourData& wxColourData::operator=(const wxColourData& data)
|
||||
{
|
||||
for (int i = 0; i < WXSIZEOF(m_custColours); i++)
|
||||
m_custColours[i] = data.m_custColours[i];
|
||||
|
||||
m_dataColour = data.m_dataColour;
|
||||
m_chooseFull = data.m_chooseFull;
|
||||
|
||||
return *this;
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user