From ccdefb79573420faa935ece1491bb23859d743f9 Mon Sep 17 00:00:00 2001 From: Neil Date: Mon, 12 Oct 2015 09:09:34 +1100 Subject: Implement Swap in SelectionRange to avoid warnings. --- src/Selection.cxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/Selection.cxx') 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(); -- cgit v1.2.3