Use const reference for wxPoint parameter

This commit is contained in:
Paul Cornett 2017-05-28 23:56:46 -07:00
parent 01909a20c8
commit d16afbd3c1

View File

@ -110,7 +110,7 @@ public:
// these functions are mostly used by wxWidgets itself
void SetX(wxCoord x) { m_x = x; }
void SetY(wxCoord y) { m_y = y; }
void SetPosition(wxPoint pos) { m_x = pos.x; m_y = pos.y; }
void SetPosition(const wxPoint& pos) { m_x = pos.x; m_y = pos.y; }
void SetLeftDown(bool down) { m_leftDown = down; }
void SetMiddleDown(bool down) { m_middleDown = down; }