diff options
| author | Neil <nyamatongwe@gmail.com> | 2015-10-12 09:09:34 +1100 |
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2015-10-12 09:09:34 +1100 |
| commit | ccdefb79573420faa935ece1491bb23859d743f9 (patch) | |
| tree | dc6a8c92dbe7e5b88683e94b7e3c6a76811fbd36 /src/Selection.cxx | |
| parent | ebe8e2a194010fe16144ef54bf7dced61d71005d (diff) | |
| download | scintilla-mirror-ccdefb79573420faa935ece1491bb23859d743f9.tar.gz | |
Implement Swap in SelectionRange to avoid warnings.
Diffstat (limited to 'src/Selection.cxx')
| -rw-r--r-- | src/Selection.cxx | 4 |
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(); |
