From a892e1ffca62df1b8400e339750c91c4fc6c65bd Mon Sep 17 00:00:00 2001 From: Neil Date: Mon, 25 Oct 2021 20:00:07 +1100 Subject: Don't define destructors when not needed, use unique_ptr, explict constructors. --- qt/ScintillaEdit/ScintillaDocument.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'qt/ScintillaEdit/ScintillaDocument.cpp') 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(); } -- cgit v1.2.3