Make temporary variable in GetSelectionRange() const

We don't need to modify the selection blocks here.

No real changes.
This commit is contained in:
Vadim Zeitlin 2020-04-04 19:04:33 +02:00
parent 0f8e985252
commit 7231a6a855

View File

@ -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());
}