made wxHeaderCtrl::GetColumn() const to get rid of the const_cast<>s

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57380 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2008-12-17 00:11:57 +00:00
parent af67f39da8
commit 482d06f8b5
6 changed files with 10 additions and 14 deletions

View File

@@ -154,7 +154,7 @@ public:
protected:
// this method must be implemented by the derived classes to return the
// information for the given column
virtual wxHeaderColumn& GetColumn(unsigned int idx) = 0;
virtual const wxHeaderColumn& GetColumn(unsigned int idx) const = 0;
// this method is called from the default EVT_HEADER_SEPARATOR_DCLICK
// handler to update the fitting column width of the given column, it
@@ -311,7 +311,7 @@ public:
protected:
// implement/override base class methods
virtual wxHeaderColumn& GetColumn(unsigned int idx);
virtual const wxHeaderColumn& GetColumn(unsigned int idx) const;
virtual bool UpdateColumnWidthToFit(unsigned int idx, int widthTitle);
// and define another one to be overridden in the derived classes: it