diff options
author | Neil <nyamatongwe@gmail.com> | 2021-08-22 22:14:34 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2021-08-22 22:14:34 +1000 |
commit | afbd611bed7f27d0790fc19b18318e3ef213dfd8 (patch) | |
tree | 25f2007712e60e5062de4b007bf78c90f239d88c /src/Decoration.cxx | |
parent | 6f709917a1134aaf55fc83d8a9f18a30b50efd89 (diff) | |
download | scintilla-mirror-afbd611bed7f27d0790fc19b18318e3ef213dfd8.tar.gz |
Follow rule-of-zero / rule-of-5 where reasonable by removing standard operators
that are not needed.
Diffstat (limited to 'src/Decoration.cxx')
-rw-r--r-- | src/Decoration.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/Decoration.cxx b/src/Decoration.cxx index 4fd6b3b58..163347ce9 100644 --- a/src/Decoration.cxx +++ b/src/Decoration.cxx @@ -39,8 +39,6 @@ public: explicit Decoration(int indicator_) : indicator(indicator_) { } - ~Decoration() override { - } bool Empty() const noexcept override { return (rs.Runs() == 1) && (rs.AllSameAs(0)); @@ -75,7 +73,7 @@ template <typename POS> class DecorationList : public IDecorationList { int currentIndicator; int currentValue; - Decoration<POS> *current; // Cached so FillRange doesn't have to search for each call. + Decoration<POS> *current; // Non-owning. Cached so FillRange doesn't have to search for each call. Sci::Position lengthDocument; // Ordered by indicator std::vector<std::unique_ptr<Decoration<POS>>> decorationList; |