From bac32d7fde0b1d052ac9e926c6b3c96afe39bcfd Mon Sep 17 00:00:00 2001 From: Neil Date: Wed, 22 Jan 2025 07:24:06 +1100 Subject: There will be more use of std::vector so name it. --- src/Selection.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src') 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 ranges; - std::vector rangesSaved; + using Ranges = std::vector; + 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 RangesCopy() const { + Ranges RangesCopy() const { return ranges; } }; -- cgit v1.2.3