Use const reference for wxPoint parameter
This commit is contained in:
parent
01909a20c8
commit
d16afbd3c1
1 changed files with 1 additions and 1 deletions
|
|
@ -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; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue