aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Selection.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2017-04-06 21:04:37 +1000
committerNeil <nyamatongwe@gmail.com>2017-04-06 21:04:37 +1000
commitcda15af9657880e91ccf65603e109b202d9e78bf (patch)
treeeb730cdcc810842ce2255c3d2af9872041583a74 /src/Selection.cxx
parentdba2fe55b8a4ab4ac34795fe4a4b30a729c77016 (diff)
downloadscintilla-mirror-cda15af9657880e91ccf65603e109b202d9e78bf.tar.gz
Added const where possible.
Diffstat (limited to 'src/Selection.cxx')
-rw-r--r--src/Selection.cxx6
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);