diff options
author | Neil <nyamatongwe@gmail.com> | 2025-01-22 07:24:06 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2025-01-22 07:24:06 +1100 |
commit | bac32d7fde0b1d052ac9e926c6b3c96afe39bcfd (patch) | |
tree | d5fa24f5b3fc385a838b48e5c2fa5903f8f52b28 /src/Selection.h | |
parent | da41b70b18d8e05bc4f5aba19df9aad511fa3d5a (diff) | |
download | scintilla-mirror-bac32d7fde0b1d052ac9e926c6b3c96afe39bcfd.tar.gz |
There will be more use of std::vector<SelectionRange> so name it.
Diffstat (limited to 'src/Selection.h')
-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; } }; |