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:
@@ -863,8 +863,8 @@ bool wxDataViewToggleRenderer::Render( wxRect cell, wxDC *dc, int WXUNUSED(state
|
||||
return true;
|
||||
}
|
||||
|
||||
bool wxDataViewToggleRenderer::WXOnLeftClick(wxPoint WXUNUSED(cursor),
|
||||
wxRect WXUNUSED(cell),
|
||||
bool wxDataViewToggleRenderer::WXOnLeftClick(const wxPoint& WXUNUSED(cursor),
|
||||
const wxRect& WXUNUSED(cell),
|
||||
wxDataViewModel *model,
|
||||
const wxDataViewItem& item,
|
||||
unsigned int col)
|
||||
@@ -1027,7 +1027,7 @@ wxSize wxDataViewDateRenderer::GetSize() const
|
||||
return GetTextExtent(m_date.FormatDate());
|
||||
}
|
||||
|
||||
bool wxDataViewDateRenderer::WXOnActivate(wxRect WXUNUSED(cell),
|
||||
bool wxDataViewDateRenderer::WXOnActivate(const wxRect& WXUNUSED(cell),
|
||||
wxDataViewModel *model,
|
||||
const wxDataViewItem& item,
|
||||
unsigned int col)
|
||||
|
Reference in New Issue
Block a user