diff --git a/include/wx/generic/listctrl.h b/include/wx/generic/listctrl.h index 774b20a7a3..8efc002910 100644 --- a/include/wx/generic/listctrl.h +++ b/include/wx/generic/listctrl.h @@ -115,9 +115,9 @@ public: bool IsItemChecked(long item) const wxOVERRIDE; void CheckItem(long item, bool check) wxOVERRIDE; - void EnableSortIndicator(const bool enable = true) wxOVERRIDE; + void EnableSortIndicator(bool enable = true) wxOVERRIDE; bool IsSortIndicatorEnabled() const wxOVERRIDE; - void ShowSortIndicator(const int idx, const bool ascending = true) wxOVERRIDE; + void ShowSortIndicator(int idx, bool ascending = true) wxOVERRIDE; void RemoveSortIndicator() wxOVERRIDE; int GetSortIndicator() const wxOVERRIDE; bool IsAscendingSortIndicator() const wxOVERRIDE; diff --git a/include/wx/listbase.h b/include/wx/listbase.h index ce4fc2aedb..32ab9aeb3a 100644 --- a/include/wx/listbase.h +++ b/include/wx/listbase.h @@ -447,9 +447,9 @@ public: virtual void CheckItem(long WXUNUSED(item), bool WXUNUSED(check)) { } // Sort indicator in header. - virtual void EnableSortIndicator(const bool WXUNUSED(enable) = true) { } + virtual void EnableSortIndicator(bool WXUNUSED(enable) = true) { } virtual bool IsSortIndicatorEnabled() const { return false; } - virtual void ShowSortIndicator(const int WXUNUSED(idx), const bool WXUNUSED(ascending) = true) { } + virtual void ShowSortIndicator(int WXUNUSED(idx), bool WXUNUSED(ascending) = true) { } virtual void RemoveSortIndicator() { } virtual int GetSortIndicator() const { return -1; } virtual bool IsAscendingSortIndicator() const { return true; } diff --git a/include/wx/msw/listctrl.h b/include/wx/msw/listctrl.h index 2314133ff4..02e891353e 100644 --- a/include/wx/msw/listctrl.h +++ b/include/wx/msw/listctrl.h @@ -226,9 +226,9 @@ public: void CheckItem(long item, bool check) wxOVERRIDE; // Sort indicator in header - void EnableSortIndicator(const bool enable = true) wxOVERRIDE; + void EnableSortIndicator(bool enable = true) wxOVERRIDE; bool IsSortIndicatorEnabled() const wxOVERRIDE; - void ShowSortIndicator(const int idx, const bool ascending = true) wxOVERRIDE; + void ShowSortIndicator(int idx, bool ascending = true) wxOVERRIDE; void RemoveSortIndicator() wxOVERRIDE; int GetSortIndicator() const wxOVERRIDE; bool IsAscendingSortIndicator() const wxOVERRIDE; diff --git a/interface/wx/listctrl.h b/interface/wx/listctrl.h index bc6c1ac9a4..1fb82c5f9d 100644 --- a/interface/wx/listctrl.h +++ b/interface/wx/listctrl.h @@ -1435,7 +1435,7 @@ public: @since 3.1.6 */ - void EnableSortIndicator(const bool enable); + void EnableSortIndicator(bool enable); /** Returns true if a sort indicator is enabled. @@ -1462,7 +1462,7 @@ public: @since 3.1.6 */ - void ShowSortIndicator(const int idx, const bool ascending = true); + void ShowSortIndicator(int idx, bool ascending = true); /** Remove the sort indicator from the column being used as sort key. diff --git a/src/generic/listctrl.cpp b/src/generic/listctrl.cpp index 1e078b9f9a..2e9d868d5a 100644 --- a/src/generic/listctrl.cpp +++ b/src/generic/listctrl.cpp @@ -5084,7 +5084,7 @@ bool wxGenericListCtrl::IsItemChecked(long item) const return m_mainWin->IsItemChecked(item); } -void wxGenericListCtrl::EnableSortIndicator(const bool enable) +void wxGenericListCtrl::EnableSortIndicator(bool enable) { if ( m_headerWin ) { @@ -5098,7 +5098,7 @@ bool wxGenericListCtrl::IsSortIndicatorEnabled() const return m_headerWin && m_headerWin->m_enableSortCol; } -void wxGenericListCtrl::ShowSortIndicator(const int idx, const bool ascending) +void wxGenericListCtrl::ShowSortIndicator(int idx, bool ascending) { if ( idx == -1 ) { diff --git a/src/msw/listctrl.cpp b/src/msw/listctrl.cpp index 82900b7c96..283b8b6b5b 100644 --- a/src/msw/listctrl.cpp +++ b/src/msw/listctrl.cpp @@ -1456,7 +1456,7 @@ bool wxListCtrl::IsItemChecked(long item) const return ListView_GetCheckState(GetHwnd(), (UINT)item) != 0; } -void wxListCtrl::EnableSortIndicator(const bool enable) +void wxListCtrl::EnableSortIndicator(bool enable) { m_enableSortCol = enable; DrawSortArrow(); @@ -1467,7 +1467,7 @@ bool wxListCtrl::IsSortIndicatorEnabled() const return m_enableSortCol; } -void wxListCtrl::ShowSortIndicator(const int idx, const bool ascending) +void wxListCtrl::ShowSortIndicator(int idx, bool ascending) { if ( idx == -1 ) {