Pass parameters by const reference rather than by value

This commit is contained in:
Paul Cornett
2019-04-05 09:18:07 -07:00
parent d52acfe469
commit 365759753a
8 changed files with 17 additions and 17 deletions

View File

@@ -1299,7 +1299,7 @@ public:
// changed after the function returns (with true as return value).
// ValueChangeInEvent() must be used if you wish the application to be
// able to use wxEVT_PG_CHANGING to potentially veto the given value.
void ValueChangeInEvent( wxVariant variant )
void ValueChangeInEvent( const wxVariant& variant )
{
m_changeInEventValue = variant;
m_iFlags |= wxPG_FL_VALUE_CHANGE_IN_EVENT;
@@ -2203,7 +2203,7 @@ public:
m_propertyName = p->GetName();
}
void SetPropertyValue( wxVariant value )
void SetPropertyValue( const wxVariant& value )
{
m_value = value;
}