]> git.saurik.com Git - wxWidgets.git/commitdiff
Fix wxOSX/Carbon compilation after wxListCtrlBase introduction.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 8 Jan 2012 00:55:22 +0000 (00:55 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 8 Jan 2012 00:55:22 +0000 (00:55 +0000)
Make wxListCtrl::SetColumn() item parameter const reference.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70290 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/osx/listctrl.h
src/osx/carbon/listctrl_mac.cpp

index 23b660dfdd8fff53851beaa30486d8b228f8f2c9..cd6b2e9fb6b97e7628bc196e6042db3b0eacf91d 100644 (file)
@@ -63,8 +63,7 @@ class WXDLLIMPEXP_CORE wxListCtrl: public wxListCtrlBase
   bool GetColumn(int col, wxListItem& item) const;
 
   // Sets information about this column
-  // TODO: NOT const to be compatible with wxGenericListCtrl API
-  bool SetColumn(int col, wxListItem& item) ;
+  bool SetColumn(int col, const wxListItem& item) ;
 
   // Gets the column width
   int GetColumnWidth(int col) const;
index 40b16b2ba88ac17a88306ac8b583932a6d553a69..a325b646874aadf49a0c98d6f07d6e9ecb5fcfcb 100644 (file)
@@ -898,7 +898,7 @@ bool wxListCtrl::GetColumn(int col, wxListItem& item) const
 }
 
 // Sets information about this column
-bool wxListCtrl::SetColumn(int col, wxListItem& item)
+bool wxListCtrl::SetColumn(int col, const wxListItem& item)
 {
     if (m_genericImpl)
         return m_genericImpl->SetColumn(col, item);