From ddaa5b5e02f03404da03531edf7a3d410738d848 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 14 Apr 2020 18:50:06 +0200 Subject: [PATCH] Make wxGridSelection::IsInSelection() const There is really no reason for it not to be. --- include/wx/generic/gridsel.h | 4 ++-- src/generic/gridsel.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/wx/generic/gridsel.h b/include/wx/generic/gridsel.h index 18377431ef..d613283f66 100644 --- a/include/wx/generic/gridsel.h +++ b/include/wx/generic/gridsel.h @@ -28,8 +28,8 @@ public: wxGrid::wxGridSelectionModes sel = wxGrid::wxGridSelectCells); bool IsSelection(); - bool IsInSelection(int row, int col); - bool IsInSelection(const wxGridCellCoords& coords) + bool IsInSelection(int row, int col) const; + bool IsInSelection(const wxGridCellCoords& coords) const { return IsInSelection(coords.GetRow(), coords.GetCol()); } diff --git a/src/generic/gridsel.cpp b/src/generic/gridsel.cpp index 0288f9a66a..d4953c59d2 100644 --- a/src/generic/gridsel.cpp +++ b/src/generic/gridsel.cpp @@ -55,7 +55,7 @@ bool wxGridSelection::IsSelection() return !m_selection.empty(); } -bool wxGridSelection::IsInSelection( int row, int col ) +bool wxGridSelection::IsInSelection( int row, int col ) const { // Check whether the given cell is contained in one of the selected blocks. //