take const reference (thanks to Alberto Barbati)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14206 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík 2002-02-14 17:11:38 +00:00
parent 3edb5d305c
commit cebf2fec3d
2 changed files with 3 additions and 3 deletions

View File

@ -35,11 +35,11 @@ public:
void SetChooseFull(bool flag) { chooseFull = flag; }
bool GetChooseFull() const { return chooseFull; }
void SetColour(wxColour& colour) { dataColour = colour; }
void SetColour(const wxColour& colour) { dataColour = colour; }
wxColour &GetColour() { return dataColour; }
// Array of 16 custom colours
void SetCustomColour(int i, wxColour& colour);
void SetCustomColour(int i, const wxColour& colour);
wxColour GetCustomColour(int i);
void operator=(const wxColourData& data);

View File

@ -129,7 +129,7 @@ wxColourData::~wxColourData()
{
}
void wxColourData::SetCustomColour(int i, wxColour& colour)
void wxColourData::SetCustomColour(int i, const wxColour& colour)
{
if (i > 15 || i < 0)
return;