aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Selection.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2015-10-12 09:09:34 +1100
committerNeil <nyamatongwe@gmail.com>2015-10-12 09:09:34 +1100
commit4419a43db4d20837084480a93d64805c7cac703c (patch)
tree8aa39325f841188a12b8c735d6977ce4ba2eb6a4 /src/Selection.cxx
parent095d675e74677ee48478e62b38620729471600dc (diff)
downloadscintilla-mirror-4419a43db4d20837084480a93d64805c7cac703c.tar.gz
Implement Swap in SelectionRange to avoid warnings.
Diffstat (limited to 'src/Selection.cxx')
-rw-r--r--src/Selection.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Selection.cxx b/src/Selection.cxx
index a629c7e40..d58a03980 100644
--- a/src/Selection.cxx
+++ b/src/Selection.cxx
@@ -126,6 +126,10 @@ SelectionSegment SelectionRange::Intersect(SelectionSegment check) const {
}
}
+void SelectionRange::Swap() {
+ std::swap(caret, anchor);
+}
+
bool SelectionRange::Trim(SelectionRange range) {
SelectionPosition startRange = range.Start();
SelectionPosition endRange = range.End();