From 7231a6a8552683e16770173ba8aab853019578b8 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 4 Apr 2020 19:04:33 +0200 Subject: [PATCH] Make temporary variable in GetSelectionRange() const We don't need to modify the selection blocks here. No real changes. --- src/generic/grid.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/generic/grid.cpp b/src/generic/grid.cpp index f67bd960b8..1dca09bd95 100644 --- a/src/generic/grid.cpp +++ b/src/generic/grid.cpp @@ -10251,7 +10251,7 @@ wxGridSelectionRange wxGrid::GetSelectionRange() const if ( !m_selection ) return wxGridSelectionRange(); - wxVectorGridBlockCoords& blocks = m_selection->GetBlocks(); + const wxVectorGridBlockCoords& blocks = m_selection->GetBlocks(); return wxGridSelectionRange(blocks.begin(), blocks.end()); }