From dfa87cc18cc453a12113a53671c75c8461f437d8 Mon Sep 17 00:00:00 2001 From: Neil Date: Tue, 16 Jun 2015 13:11:03 +1000 Subject: Clean up some selection operations. Commonly when changing selection modes, all of the selection needs to be redrawn so that is implmeneted in Editor::InvalidateWholeSelection. Any extra selections should be discarded with only the main remaining so that is Selection::DropAdditionalRanges. Some default parameters led to less clarity so they no longer have default values. Both Editor::MovePositionTo methods always returned 0 which was ignored so they are now void. Some variables were made const. --- src/Selection.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/Selection.h') diff --git a/src/Selection.h b/src/Selection.h index 499f83771..166e3fa71 100644 --- a/src/Selection.h +++ b/src/Selection.h @@ -172,6 +172,7 @@ public: void AddSelection(SelectionRange range); void AddSelectionWithoutTrim(SelectionRange range); void DropSelection(size_t r); + void DropAdditionalRanges(); void TentativeSelection(SelectionRange range); void CommitTentative(); int CharacterInSelection(int posCharacter) const; -- cgit v1.2.3