Mercurial > octave
diff libgui/src/m-editor/file-editor.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 | b4906d3eeb63 |
children | 07591becbc40 |
line wrap: on
line diff
--- a/libgui/src/m-editor/file-editor.h Wed Apr 21 13:23:16 2021 -0400 +++ b/libgui/src/m-editor/file-editor.h Thu Apr 22 12:52:14 2021 -0400 @@ -90,7 +90,7 @@ file_editor (QWidget *p, base_qobject& oct_qobj); - ~file_editor (void); + ~file_editor (void) = default; QMenu * get_mru_menu (void) { return m_mru_file_menu; }