aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Editor.h4
-rw-r--r--src/ScintillaBase.h4
2 files changed, 6 insertions, 2 deletions
diff --git a/src/Editor.h b/src/Editor.h
index eb921541f..c5bddb1e0 100644
--- a/src/Editor.h
+++ b/src/Editor.h
@@ -260,7 +260,7 @@ protected: // ScintillaBase subclass needs access to much of Editor
Editor(Editor &&) = delete;
Editor &operator=(const Editor &) = delete;
Editor &operator=(Editor &&) = delete;
- ~Editor() override;
+ // ~Editor() in public section
virtual void Initialise() = 0;
virtual void Finalise();
@@ -599,6 +599,8 @@ protected: // ScintillaBase subclass needs access to much of Editor
static sptr_t BytesResult(sptr_t lParam, const unsigned char *val, size_t len) noexcept;
public:
+ ~Editor() override;
+
// Public so the COM thunks can access it.
bool IsUnicodeMode() const noexcept;
// Public so scintilla_send_message can use it.
diff --git a/src/ScintillaBase.h b/src/ScintillaBase.h
index e886f22e2..39fb9d411 100644
--- a/src/ScintillaBase.h
+++ b/src/ScintillaBase.h
@@ -57,7 +57,7 @@ protected:
ScintillaBase(ScintillaBase &&) = delete;
ScintillaBase &operator=(const ScintillaBase &) = delete;
ScintillaBase &operator=(ScintillaBase &&) = delete;
- ~ScintillaBase() override;
+ // ~ScintillaBase() in public section
void Initialise() override {}
void Finalise() override;
@@ -94,6 +94,8 @@ protected:
void NotifyLexerChanged(Document *doc, void *userData) override;
public:
+ ~ScintillaBase() override;
+
// Public so scintilla_send_message can use it
sptr_t WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam) override;
};