diff options
author | Neil <nyamatongwe@gmail.com> | 2021-10-25 20:00:07 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2021-10-25 20:00:07 +1100 |
commit | a892e1ffca62df1b8400e339750c91c4fc6c65bd (patch) | |
tree | ab1040b0f5887b2fb7cbac2f66ad2efaf8c0958d /qt/ScintillaEdit/ScintillaDocument.cpp | |
parent | 83b67c1d70ac48dd242e7a7d6d248e26cddc69e4 (diff) | |
download | scintilla-mirror-a892e1ffca62df1b8400e339750c91c4fc6c65bd.tar.gz |
Don't define destructors when not needed, use unique_ptr, explict constructors.
Diffstat (limited to 'qt/ScintillaEdit/ScintillaDocument.cpp')
-rw-r--r-- | qt/ScintillaEdit/ScintillaDocument.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/qt/ScintillaEdit/ScintillaDocument.cpp b/qt/ScintillaEdit/ScintillaDocument.cpp index 8d50eabdb..251a5e557 100644 --- a/qt/ScintillaEdit/ScintillaDocument.cpp +++ b/qt/ScintillaEdit/ScintillaDocument.cpp @@ -48,7 +48,6 @@ class WatcherHelper : public DocWatcher { ScintillaDocument *owner; public: explicit WatcherHelper(ScintillaDocument *owner_); - virtual ~WatcherHelper(); void NotifyModifyAttempt(Document *doc, void *userData) override; void NotifySavePoint(Document *doc, void *userData, bool atSavePoint) override; @@ -62,9 +61,6 @@ public: WatcherHelper::WatcherHelper(ScintillaDocument *owner_) : owner(owner_) { } -WatcherHelper::~WatcherHelper() { -} - void WatcherHelper::NotifyModifyAttempt(Document *, void *) { emit owner->modify_attempt(); } |