diff options
author | Neil <nyamatongwe@gmail.com> | 2023-04-11 08:18:53 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2023-04-11 08:18:53 +1000 |
commit | c94691510eefa2f74e5f760fa09b51046cea8eab (patch) | |
tree | 9eae65ed771281ec90ba4873a94d92897a3c747b | |
parent | 0f217c85e580b052b3b6798e53c6f1cb42464881 (diff) | |
download | scintilla-mirror-c94691510eefa2f74e5f760fa09b51046cea8eab.tar.gz |
Follow rule-of-zero to omit standard methods.
-rw-r--r-- | src/Document.cxx | 9 | ||||
-rw-r--r-- | src/RESearch.h | 2 |
2 files changed, 1 insertions, 10 deletions
diff --git a/src/Document.cxx b/src/Document.cxx index 4450954b4..94d126a70 100644 --- a/src/Document.cxx +++ b/src/Document.cxx @@ -2880,7 +2880,7 @@ public: }; // Define a way for the Regular Expression code to access the document -class DocumentIndexer : public CharacterIndexer { +class DocumentIndexer final : public CharacterIndexer { Document *pdoc; Sci::Position end; public: @@ -2888,13 +2888,6 @@ public: pdoc(pdoc_), end(end_) { } - DocumentIndexer(const DocumentIndexer &) = delete; - DocumentIndexer(DocumentIndexer &&) = delete; - DocumentIndexer &operator=(const DocumentIndexer &) = delete; - DocumentIndexer &operator=(DocumentIndexer &&) = delete; - - ~DocumentIndexer() override = default; - char CharAt(Sci::Position index) const noexcept override { if (index < 0 || index >= end) return 0; diff --git a/src/RESearch.h b/src/RESearch.h index 306d1b3d1..34c6c46f9 100644 --- a/src/RESearch.h +++ b/src/RESearch.h @@ -14,8 +14,6 @@ namespace Scintilla::Internal { class CharacterIndexer { public: virtual char CharAt(Sci::Position index) const=0; - virtual ~CharacterIndexer() { - } }; class RESearch { |