diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/Selection.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/Selection.h b/src/Selection.h index 9f7d73c3c..28db77445 100644 --- a/src/Selection.h +++ b/src/Selection.h @@ -147,8 +147,9 @@ struct SelectionRange { enum InSelection { inNone, inMain, inAdditional }; class Selection { - std::vector<SelectionRange> ranges; - std::vector<SelectionRange> rangesSaved; + using Ranges = std::vector<SelectionRange>; + Ranges ranges; + Ranges rangesSaved; SelectionRange rangeRectangular; size_t mainRange; bool moveExtends; @@ -198,7 +199,7 @@ public: void RemoveDuplicates() noexcept; void RotateMain() noexcept; bool Tentative() const noexcept { return tentativeMain; } - std::vector<SelectionRange> RangesCopy() const { + Ranges RangesCopy() const { return ranges; } }; |