From cda15af9657880e91ccf65603e109b202d9e78bf Mon Sep 17 00:00:00 2001 From: Neil Date: Thu, 6 Apr 2017 21:04:37 +1000 Subject: Added const where possible. --- src/Selection.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/Selection.cxx') 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); -- cgit v1.2.3