Fix wxOSX/Carbon compilation after wxListCtrlBase introduction.
Make wxListCtrl::SetColumn() item parameter const reference. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70290 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -63,8 +63,7 @@ class WXDLLIMPEXP_CORE wxListCtrl: public wxListCtrlBase
|
|||||||
bool GetColumn(int col, wxListItem& item) const;
|
bool GetColumn(int col, wxListItem& item) const;
|
||||||
|
|
||||||
// Sets information about this column
|
// Sets information about this column
|
||||||
// TODO: NOT const to be compatible with wxGenericListCtrl API
|
bool SetColumn(int col, const wxListItem& item) ;
|
||||||
bool SetColumn(int col, wxListItem& item) ;
|
|
||||||
|
|
||||||
// Gets the column width
|
// Gets the column width
|
||||||
int GetColumnWidth(int col) const;
|
int GetColumnWidth(int col) const;
|
||||||
|
@@ -898,7 +898,7 @@ bool wxListCtrl::GetColumn(int col, wxListItem& item) const
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Sets information about this column
|
// Sets information about this column
|
||||||
bool wxListCtrl::SetColumn(int col, wxListItem& item)
|
bool wxListCtrl::SetColumn(int col, const wxListItem& item)
|
||||||
{
|
{
|
||||||
if (m_genericImpl)
|
if (m_genericImpl)
|
||||||
return m_genericImpl->SetColumn(col, item);
|
return m_genericImpl->SetColumn(col, item);
|
||||||
|
Reference in New Issue
Block a user