diff libgui/src/documentation.h @ 29550:8dd0fca2a3d9

where possible, use default destructors in GUI classes In most cases, don't explicitly delete objects that have parents in the QObject class hierarchy as they will be deleted automatically when the parent object is deleted. Explicitly declare more destructors as "default". Files affected: dialog.cc, dialog.h, documentation-bookmarks.cc, documentation-bookmarks.h, documentation-dock-widget.cc, documentation-dock-widget.h, documentation.cc, documentation.h, m-editor/file-editor.cc, m-editor/file-editor.h, main-window.cc, main-window.h, set-path-dialog.cc, set-path-dialog.h, tab-bar.cc, tab-bar.h, terminal-dock-widget.cc, and terminal-dock-widget.h.
author John W. Eaton <jwe@octave.org>
date Thu, 22 Apr 2021 12:52:14 -0400
parents 7854d5752dd2
children 7a0be7c8b7ca
line wrap: on
line diff
--- a/libgui/src/documentation.h	Wed Apr 21 13:23:16 2021 -0400
+++ b/libgui/src/documentation.h	Thu Apr 22 12:52:14 2021 -0400
@@ -53,7 +53,7 @@
   public:
 
     documentation_browser (QHelpEngine *help_engine, QWidget *parent = nullptr);
-    ~documentation_browser (void);
+    ~documentation_browser (void) = default;
 
     virtual QVariant loadResource (int type, const QUrl &url);