Pass wxRect/wxPoint arguments to wxDataViewCustomRenderer by reference.
Instead of passing them by value, use const reference. This change is safe to do, because these methods' signatures were different in 2.8 anyhow. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67099 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -189,7 +189,7 @@ public:
|
||||
return true;
|
||||
}
|
||||
|
||||
virtual bool Activate( wxRect WXUNUSED(cell),
|
||||
virtual bool Activate( const wxRect& WXUNUSED(cell),
|
||||
wxDataViewModel *WXUNUSED(model),
|
||||
const wxDataViewItem &WXUNUSED(item),
|
||||
unsigned int WXUNUSED(col) )
|
||||
@@ -198,7 +198,8 @@ public:
|
||||
return false;
|
||||
}
|
||||
|
||||
virtual bool LeftClick( wxPoint cursor, wxRect WXUNUSED(cell),
|
||||
virtual bool LeftClick(const wxPoint& cursor,
|
||||
const wxRect& WXUNUSED(cell),
|
||||
wxDataViewModel *WXUNUSED(model),
|
||||
const wxDataViewItem &WXUNUSED(item),
|
||||
unsigned int WXUNUSED(col) )
|
||||
|
Reference in New Issue
Block a user