diff options
author | Neil <nyamatongwe@gmail.com> | 2017-04-06 21:04:37 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2017-04-06 21:04:37 +1000 |
commit | cda15af9657880e91ccf65603e109b202d9e78bf (patch) | |
tree | eb730cdcc810842ce2255c3d2af9872041583a74 /src/Selection.cxx | |
parent | dba2fe55b8a4ab4ac34795fe4a4b30a729c77016 (diff) | |
download | scintilla-mirror-cda15af9657880e91ccf65603e109b202d9e78bf.tar.gz |
Added const where possible.
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); |