diff options
Diffstat (limited to 'src/Selection.cxx')
-rw-r--r-- | src/Selection.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Selection.cxx b/src/Selection.cxx index aecd973a9..cc7065e3a 100644 --- a/src/Selection.cxx +++ b/src/Selection.cxx @@ -36,7 +36,7 @@ void SelectionPosition::MoveForInsertDelete(bool insertion, Sci::Position startC virtualSpace = 0; } if (position > startChange) { - Sci::Position endDeletion = startChange + length; + const Sci::Position endDeletion = startChange + length; if (position > endDeletion) { position -= length; } else { @@ -131,8 +131,8 @@ void SelectionRange::Swap() { } bool SelectionRange::Trim(SelectionRange range) { - SelectionPosition startRange = range.Start(); - SelectionPosition endRange = range.End(); + const SelectionPosition startRange = range.Start(); + const SelectionPosition endRange = range.End(); SelectionPosition start = Start(); SelectionPosition end = End(); PLATFORM_ASSERT(start <= end); |