Make temporary variable in GetSelectionRange() const
We don't need to modify the selection blocks here. No real changes.
This commit is contained in:
parent
0f8e985252
commit
7231a6a855
@ -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());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user