diff options
author | Neil <nyamatongwe@gmail.com> | 2021-10-12 12:01:49 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2021-10-12 12:01:49 +1100 |
commit | b4fd2631f64008179d7e7a7e5d9194a08f30a66b (patch) | |
tree | 235a67c2fb6a075571bef1ef20ec2390e41681e8 /gtk | |
parent | 40e479ba4f68d442fe0552c2551422e884085cdd (diff) | |
download | scintilla-mirror-b4fd2631f64008179d7e7a7e5d9194a08f30a66b.tar.gz |
Feature [feature-requests:#1416] Mark override destructors as override.
Diffstat (limited to 'gtk')
-rwxr-xr-x | gtk/PlatGTK.cxx | 2 | ||||
-rwxr-xr-x | gtk/ScintillaGTK.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/gtk/PlatGTK.cxx b/gtk/PlatGTK.cxx index 4beb1c418..770334a92 100755 --- a/gtk/PlatGTK.cxx +++ b/gtk/PlatGTK.cxx @@ -114,7 +114,7 @@ public: FontHandle(FontHandle &&) = delete; FontHandle &operator=(const FontHandle &) = delete; FontHandle &operator=(FontHandle &&) = delete; - ~FontHandle() { + ~FontHandle() override { if (pfd) pango_font_description_free(pfd); pfd = nullptr; diff --git a/gtk/ScintillaGTK.h b/gtk/ScintillaGTK.h index 022471699..8d9f41e6b 100755 --- a/gtk/ScintillaGTK.h +++ b/gtk/ScintillaGTK.h @@ -92,7 +92,7 @@ public: ScintillaGTK(ScintillaGTK &&) = delete; ScintillaGTK &operator=(const ScintillaGTK &) = delete; ScintillaGTK &operator=(ScintillaGTK &&) = delete; - virtual ~ScintillaGTK(); + ~ScintillaGTK() override; static ScintillaGTK *FromWidget(GtkWidget *widget) noexcept; static void ClassInit(OBJECT_CLASS *object_class, GtkWidgetClass *widget_class, GtkContainerClass *container_class); private: |