Mercurial > octave
changeset 22868:87e3163f6c87
use c++11 "= default" syntax for declaration of trivial destructors
* make_int.cc, Canvas.h, GenericEventNotify.h, TextEdit.h, gl-select.h, QTerminal.h, files-dock-widget.h, history-dock-widget.h, octave-cmd.h, octave-dock-widget.h, octave-interpreter.h, thread-manager.h, welcome-wizard.h, workspace-model.h, workspace-view.h, base-text-renderer.h, comment-list.h, debug.h, dynamic-ld.cc, dynamic-ld.h, ft-text-renderer.cc, gl-render.h, gl2ps-print.cc, graphics.in.h, hook-fcn.h, input.h, load-path.h, mxarray.in.h, oct-errno.h, oct-fstrm.h, oct-handle.h, oct-iostrm.h, oct-lvalue.h, oct-stdstrm.h, oct-stream.cc, oct-stream.h, oct-strstrm.h, pr-output.cc, procstream.h, sighandlers.cc, symtab.h, text-renderer.h, txt-eng.h, variables.cc, workspace-element.h, __init_fltk__.cc, __init_gnuplot__.cc, ov-base-diag.h, ov-base-int.h, ov-base-scalar.h, ov-base-sparse.h, ov-base.h, ov-bool-mat.h, ov-bool-sparse.h, ov-bool.h, ov-builtin.h, ov-cell.h, ov-ch-mat.h, ov-class.h, ov-classdef.cc, ov-classdef.h, ov-colon.h, ov-complex.cc, ov-complex.h, ov-cs-list.h, ov-cx-diag.h, ov-cx-mat.h, ov-cx-sparse.h, ov-fcn-handle.h, ov-fcn-inline.h, ov-fcn.h, ov-float.h, ov-flt-complex.h, ov-flt-cx-diag.h, ov-flt-cx-mat.h, ov-flt-re-diag.h, ov-flt-re-mat.h, ov-intx.h, ov-lazy-idx.h, ov-re-diag.h, ov-re-mat.h, ov-re-sparse.h, ov-scalar.h, ov-str-mat.h, ov-struct.h, ov-typeinfo.h, ov-usr-fcn.h, ovl.h, octave.h, lex.h, parse.h, pt-binop.h, pt-bp.h, pt-cell.h, pt-check.h, pt-classdef.h, pt-cmd.h, pt-const.h, pt-decl.h, pt-eval.h, pt-exp.h, pt-fcn-handle.h, pt-funcall.h, pt-id.h, pt-jump.h, pt-loop.h, pt-mat.cc, pt-mat.h, pt-misc.h, pt-pr-code.h, pt-unop.h, pt-walk.h, pt.h, DiagArray2.h, MArray.h, MDiagArray2.h, MSparse.h, idx-vector.h, quit.h, CollocWt.h, DAE.h, DAEFunc.h, DAERT.h, DAERTFunc.h, DASPK.h, DASRT.h, DASSL.h, EIG.h, LSODE.h, ODE.h, ODEFunc.h, ODES.h, ODESFunc.h, Quad.h, aepbalance.h, base-dae.h, base-de.h, base-min.h, fEIG.h, gepbalance.h, gsvd.h, hess.h, lu.h, oct-rand.h, oct-spparms.h, qr.h, qrp.h, schur.h, sparse-lu.h, svd.h, child-list.h, file-stat.h, oct-passwd.h, oct-time.h, oct-uname.h, action-container.h, base-list.h, cmd-edit.cc, cmd-edit.h, cmd-hist.cc, cmd-hist.h, glob-match.h, lo-array-errwarn.h, lo-regexp.h, oct-mutex.h, pathsearch.h, str-vec.h, url-transfer.h:
line wrap: on
line diff
--- a/examples/code/make_int.cc Tue Dec 06 10:44:20 2016 -0500 +++ b/examples/code/make_int.cc Tue Dec 06 10:59:29 2016 -0500 @@ -45,7 +45,7 @@ octave_integer (const octave_integer& s) : octave_base_value (), scalar (s.scalar) { } - ~octave_integer (void) { } + ~octave_integer (void) = default; octave_base_value *clone (void) { return new octave_integer (*this); }
--- a/libgui/graphics/Canvas.h Tue Dec 06 10:44:20 2016 -0500 +++ b/libgui/graphics/Canvas.h Tue Dec 06 10:59:29 2016 -0500 @@ -49,7 +49,7 @@ }; public: - virtual ~Canvas (void) { } + virtual ~Canvas (void) = default; void redraw (bool sync = false); void blockRedraw (bool block = true);
--- a/libgui/graphics/GenericEventNotify.h Tue Dec 06 10:44:20 2016 -0500 +++ b/libgui/graphics/GenericEventNotify.h Tue Dec 06 10:59:29 2016 -0500 @@ -38,7 +38,7 @@ { public: GenericEventNotifySender (void) : m_receivers () { } - virtual ~GenericEventNotifySender (void) { } + virtual ~GenericEventNotifySender (void) = default; void addReceiver (GenericEventNotifyReceiver* r) { m_receivers.insert (r); } @@ -58,7 +58,7 @@ { public: GenericEventNotifyReceiver (void) { } - virtual ~GenericEventNotifyReceiver (void) { } + virtual ~GenericEventNotifyReceiver (void) = default; virtual bool eventNotifyBefore (QObject* obj, QEvent* evt) = 0; virtual void eventNotifyAfter (QObject* obj, QEvent* evt) = 0; @@ -87,7 +87,7 @@ { \ public: \ T (QWidget* xparent) : B (xparent), GenericEventNotifySender () { } \ - ~ T (void) { } \ + ~ T (void) = default; \ \ bool event (QEvent* evt) \ { \
--- a/libgui/graphics/TextEdit.h Tue Dec 06 10:44:20 2016 -0500 +++ b/libgui/graphics/TextEdit.h Tue Dec 06 10:59:29 2016 -0500 @@ -34,7 +34,7 @@ public: TextEdit (QWidget* xparent) : QTextEdit(xparent) { } - ~TextEdit (void) { } + ~TextEdit (void) = default; signals: void editingFinished (void);
--- a/libgui/graphics/gl-select.h Tue Dec 06 10:44:20 2016 -0500 +++ b/libgui/graphics/gl-select.h Tue Dec 06 10:59:29 2016 -0500 @@ -42,7 +42,7 @@ public: opengl_selector (void) : size (5) { } - virtual ~opengl_selector (void) { } + virtual ~opengl_selector (void) = default; graphics_object select (const graphics_object& ax, int x, int y, int flags = 0);
--- a/libgui/qterminal/libqterminal/QTerminal.h Tue Dec 06 10:44:20 2016 -0500 +++ b/libgui/qterminal/libqterminal/QTerminal.h Tue Dec 06 10:59:29 2016 -0500 @@ -49,7 +49,7 @@ static QStringList color_names (void); - virtual ~QTerminal (void) { } + virtual ~QTerminal (void) = default; virtual void setTerminalFont (const QFont& font) = 0;
--- a/libgui/src/files-dock-widget.h Tue Dec 06 10:44:20 2016 -0500 +++ b/libgui/src/files-dock-widget.h Tue Dec 06 10:59:29 2016 -0500 @@ -52,7 +52,7 @@ files_dock_widget (QWidget *parent = 0); - ~files_dock_widget (void) { } + ~files_dock_widget (void) = default; public slots:
--- a/libgui/src/history-dock-widget.h Tue Dec 06 10:44:20 2016 -0500 +++ b/libgui/src/history-dock-widget.h Tue Dec 06 10:59:29 2016 -0500 @@ -39,7 +39,7 @@ public: history_dock_widget (QWidget *parent = 0); - ~history_dock_widget (void) { } + ~history_dock_widget (void) = default; public slots:
--- a/libgui/src/octave-cmd.h Tue Dec 06 10:44:20 2016 -0500 +++ b/libgui/src/octave-cmd.h Tue Dec 06 10:59:29 2016 -0500 @@ -110,7 +110,7 @@ _queue (QList<octave_cmd *> ()), _processing (1), _queue_mutex () { }; - ~octave_command_queue (void) { }; + ~octave_command_queue (void) = default;; /** * Adds a new octave command to the command queue.
--- a/libgui/src/octave-dock-widget.h Tue Dec 06 10:44:20 2016 -0500 +++ b/libgui/src/octave-dock-widget.h Tue Dec 06 10:59:29 2016 -0500 @@ -37,7 +37,7 @@ public: octave_dock_widget (QWidget *p = 0); - virtual ~octave_dock_widget (void) { } + virtual ~octave_dock_widget (void) = default; virtual void connect_visibility_changed (void); void make_window (void);
--- a/libgui/src/octave-interpreter.h Tue Dec 06 10:44:20 2016 -0500 +++ b/libgui/src/octave-interpreter.h Tue Dec 06 10:59:29 2016 -0500 @@ -40,7 +40,7 @@ octave_interpreter (octave::application *app_context); - ~octave_interpreter (void) { } + ~octave_interpreter (void) = default; signals:
--- a/libgui/src/thread-manager.h Tue Dec 06 10:44:20 2016 -0500 +++ b/libgui/src/thread-manager.h Tue Dec 06 10:59:29 2016 -0500 @@ -39,7 +39,7 @@ : count (1) { } - virtual ~octave_base_thread_manager (void) { } + virtual ~octave_base_thread_manager (void) = default; virtual void register_current_thread (void) = 0;
--- a/libgui/src/welcome-wizard.h Tue Dec 06 10:44:20 2016 -0500 +++ b/libgui/src/welcome-wizard.h Tue Dec 06 10:59:29 2016 -0500 @@ -38,7 +38,7 @@ welcome_wizard (QWidget *parent = 0); - ~welcome_wizard (void) { } + ~welcome_wizard (void) = default; private: @@ -67,7 +67,7 @@ initial_page (welcome_wizard *wizard); - ~initial_page (void) { } + ~initial_page (void) = default; static QWidget * create (welcome_wizard *wizard) { return new initial_page (wizard); } @@ -90,7 +90,7 @@ setup_community_news (welcome_wizard *wizard); - ~setup_community_news (void) { } + ~setup_community_news (void) = default; static QWidget * create (welcome_wizard *wizard) { return new setup_community_news (wizard); } @@ -116,7 +116,7 @@ final_page (welcome_wizard *wizard); - ~final_page (void) { } + ~final_page (void) = default; static QWidget * create (welcome_wizard *wizard) { return new final_page (wizard); }
--- a/libgui/src/workspace-model.h Tue Dec 06 10:44:20 2016 -0500 +++ b/libgui/src/workspace-model.h Tue Dec 06 10:59:29 2016 -0500 @@ -45,7 +45,7 @@ workspace_model (QObject *parent = 0); - ~workspace_model (void) { } + ~workspace_model (void) = default; static QList<QColor> storage_class_default_colors (void);
--- a/libgui/src/workspace-view.h Tue Dec 06 10:44:20 2016 -0500 +++ b/libgui/src/workspace-view.h Tue Dec 06 10:59:29 2016 -0500 @@ -43,7 +43,7 @@ workspace_view (QWidget *parent = 0); - ~workspace_view (void) { } + ~workspace_view (void) = default; public slots:
--- a/libinterp/corefcn/base-text-renderer.h Tue Dec 06 10:44:20 2016 -0500 +++ b/libinterp/corefcn/base-text-renderer.h Tue Dec 06 10:59:29 2016 -0500 @@ -44,7 +44,7 @@ base_text_renderer (void) : text_processor () { } - virtual ~base_text_renderer (void) { } + virtual ~base_text_renderer (void) = default; virtual Matrix get_extent (text_element *elt, double rotation) = 0;
--- a/libinterp/corefcn/comment-list.h Tue Dec 06 10:44:20 2016 -0500 +++ b/libinterp/corefcn/comment-list.h Tue Dec 06 10:59:29 2016 -0500 @@ -72,7 +72,7 @@ comment_type type (void) const { return typ; } - ~octave_comment_elt (void) { } + ~octave_comment_elt (void) = default; private:
--- a/libinterp/corefcn/debug.h Tue Dec 06 10:44:20 2016 -0500 +++ b/libinterp/corefcn/debug.h Tue Dec 06 10:59:29 2016 -0500 @@ -52,7 +52,7 @@ bp_table (void) : bp_set () { } - ~bp_table (void) { } + ~bp_table (void) = default; public:
--- a/libinterp/corefcn/dynamic-ld.cc Tue Dec 06 10:44:20 2016 -0500 +++ b/libinterp/corefcn/dynamic-ld.cc Tue Dec 06 10:59:29 2016 -0500 @@ -68,7 +68,7 @@ octave_shlib_list (void) : lib_list () { } - ~octave_shlib_list (void) { } + ~octave_shlib_list (void) = default; void do_append (const octave::dynamic_library& shl);
--- a/libinterp/corefcn/dynamic-ld.h Tue Dec 06 10:44:20 2016 -0500 +++ b/libinterp/corefcn/dynamic-ld.h Tue Dec 06 10:59:29 2016 -0500 @@ -40,7 +40,7 @@ public: - virtual ~octave_dynamic_loader (void) { } + virtual ~octave_dynamic_loader (void) = default; static octave_function * load_oct (const std::string& fcn_name,
--- a/libinterp/corefcn/ft-text-renderer.cc Tue Dec 06 10:44:20 2016 -0500 +++ b/libinterp/corefcn/ft-text-renderer.cc Tue Dec 06 10:59:29 2016 -0500 @@ -351,7 +351,7 @@ color (dim_vector (1, 3), 0) { } - ~ft_text_renderer (void) { } + ~ft_text_renderer (void) = default; void visit (text_element_string& e);
--- a/libinterp/corefcn/gl-render.h Tue Dec 06 10:44:20 2016 -0500 +++ b/libinterp/corefcn/gl-render.h Tue Dec 06 10:59:29 2016 -0500 @@ -38,7 +38,7 @@ opengl_renderer (void); - virtual ~opengl_renderer (void) { } + virtual ~opengl_renderer (void) = default; virtual void draw (const graphics_object& go, bool toplevel = true);
--- a/libinterp/corefcn/gl2ps-print.cc Tue Dec 06 10:44:20 2016 -0500 +++ b/libinterp/corefcn/gl2ps-print.cc Tue Dec 06 10:59:29 2016 -0500 @@ -61,7 +61,7 @@ fontname (), buffer_overflow (false) { } - ~gl2ps_renderer (void) { } + ~gl2ps_renderer (void) = default; // FIXME: should we import the functions from the base class and // overload them here, or should we use a different name so we don't
--- a/libinterp/corefcn/graphics.in.h Tue Dec 06 10:44:20 2016 -0500 +++ b/libinterp/corefcn/graphics.in.h Tue Dec 06 10:59:29 2016 -0500 @@ -60,7 +60,7 @@ public: base_scaler (void) { } - virtual ~base_scaler (void) { } + virtual ~base_scaler (void) = default; virtual Matrix scale (const Matrix&) const { @@ -280,7 +280,7 @@ hidden (p.hidden), listeners () { } - virtual ~base_property (void) { } + virtual ~base_property (void) = default; bool ok (void) const { return parent.ok (); } @@ -2068,7 +2068,7 @@ property_list (const plist_map_type& m = plist_map_type ()) : plist_map (m) { } - ~property_list (void) { } + ~property_list (void) = default; void set (const caseless_str& name, const octave_value& val); @@ -2110,7 +2110,7 @@ base_graphics_toolkit (const std::string& nm) : name (nm), count (0) { } - virtual ~base_graphics_toolkit (void) { } + virtual ~base_graphics_toolkit (void) = default; std::string get_name (void) const { return name; } @@ -2342,7 +2342,7 @@ gtk_manager (void) { } - ~gtk_manager (void) { } + ~gtk_manager (void) = default; OCTINTERP_API static void create_instance (void); @@ -2462,7 +2462,7 @@ const graphics_handle& mh = graphics_handle (), const graphics_handle& p = graphics_handle ()); - virtual ~base_properties (void) { } + virtual ~base_properties (void) = default; virtual std::string graphics_object_name (void) const { return "unknown"; } @@ -2690,7 +2690,7 @@ base_graphics_object (void) : count (1), toolkit_flag (false) { } - virtual ~base_graphics_object (void) { } + virtual ~base_graphics_object (void) = default; virtual void mark_modified (void) { @@ -3220,7 +3220,7 @@ root_figure (void) : xproperties (0, graphics_handle ()), default_properties () { } - ~root_figure (void) { } + ~root_figure (void) = default; void mark_modified (void) { } @@ -3519,7 +3519,7 @@ : base_graphics_object (), xproperties (mh, p), default_properties () { } - ~figure (void) { } + ~figure (void) = default; void override_defaults (base_graphics_object& obj) { @@ -3611,7 +3611,7 @@ : xform (g.xform), xform_inv (g.xform_inv), sx (g.sx), sy (g.sy), sz (g.sz), zlim (g.zlim) { } - ~graphics_xform (void) { } + ~graphics_xform (void) = default; graphics_xform& operator = (const graphics_xform& g) { @@ -4319,7 +4319,7 @@ xproperties.update_transform (); } - ~axes (void) { } + ~axes (void) = default; void override_defaults (base_graphics_object& obj) { @@ -4477,7 +4477,7 @@ : base_graphics_object (), xproperties (mh, p) { } - ~line (void) { } + ~line (void) = default; base_properties& get_properties (void) { return xproperties; } @@ -4651,7 +4651,7 @@ xproperties.set_clipping ("off"); } - ~text (void) { } + ~text (void) = default; base_properties& get_properties (void) { return xproperties; } @@ -4861,7 +4861,7 @@ xproperties.initialize_data (); } - ~image (void) { } + ~image (void) = default; base_properties& get_properties (void) { return xproperties; } @@ -4910,7 +4910,7 @@ : base_graphics_object (), xproperties (mh, p) { } - ~light (void) { } + ~light (void) = default; base_properties& get_properties (void) { return xproperties; } @@ -5131,7 +5131,7 @@ : base_graphics_object (), xproperties (mh, p) { } - ~patch (void) { } + ~patch (void) = default; base_properties& get_properties (void) { return xproperties; } @@ -5323,7 +5323,7 @@ : base_graphics_object (), xproperties (mh, p) { } - ~surface (void) { } + ~surface (void) = default; base_properties& get_properties (void) { return xproperties; } @@ -5401,7 +5401,7 @@ : base_graphics_object (), xproperties (mh, p) { } - ~hggroup (void) { } + ~hggroup (void) = default; base_properties& get_properties (void) { return xproperties; } @@ -5475,7 +5475,7 @@ : base_graphics_object (), xproperties (mh, p) { } - ~uimenu (void) { } + ~uimenu (void) = default; base_properties& get_properties (void) { return xproperties; } @@ -5641,7 +5641,7 @@ : base_graphics_object (), xproperties (mh, p) { } - ~uicontrol (void) { } + ~uicontrol (void) = default; base_properties& get_properties (void) { return xproperties; } @@ -5727,7 +5727,7 @@ : base_graphics_object (), xproperties (mh, p) { } - ~uibuttongroup (void) { } + ~uibuttongroup (void) = default; base_properties& get_properties (void) { return xproperties; } @@ -5803,7 +5803,7 @@ : base_graphics_object (), xproperties (mh, p) { } - ~uipanel (void) { } + ~uipanel (void) = default; base_properties& get_properties (void) { return xproperties; } @@ -5849,7 +5849,7 @@ : base_graphics_object (), xproperties (mh, p), default_properties () { } - ~uitoolbar (void) { } + ~uitoolbar (void) = default; void override_defaults (base_graphics_object& obj) { @@ -5958,7 +5958,7 @@ : base_graphics_object (), xproperties (mh, p) { } - ~uipushtool (void) { } + ~uipushtool (void) = default; base_properties& get_properties (void) { return xproperties; } @@ -6017,7 +6017,7 @@ : base_graphics_object (), xproperties (mh, p) { } - ~uitoggletool (void) { } + ~uitoggletool (void) = default; base_properties& get_properties (void) { return xproperties; } @@ -6056,7 +6056,7 @@ base_graphics_event (void) : count (1) { } - virtual ~base_graphics_event (void) { } + virtual ~base_graphics_event (void) = default; virtual void execute (void) = 0;
--- a/libinterp/corefcn/hook-fcn.h Tue Dec 06 10:44:20 2016 -0500 +++ b/libinterp/corefcn/hook-fcn.h Tue Dec 06 10:59:29 2016 -0500 @@ -44,7 +44,7 @@ base_hook_function (const base_hook_function&) : count (1) { } - virtual ~base_hook_function (void) { } + virtual ~base_hook_function (void) = default; virtual std::string id (void) { return ""; } @@ -199,7 +199,7 @@ hook_function_list (void) : fcn_map () { } - ~hook_function_list (void) { } + ~hook_function_list (void) = default; hook_function_list (const hook_function_list& lst) : fcn_map (lst.fcn_map)
--- a/libinterp/corefcn/input.h Tue Dec 06 10:44:20 2016 -0500 +++ b/libinterp/corefcn/input.h Tue Dec 06 10:59:29 2016 -0500 @@ -101,7 +101,7 @@ : count (1), pflag (x.pflag), lexer (x.lexer) { } - virtual ~octave_base_reader (void) { } + virtual ~octave_base_reader (void) = default; virtual std::string get_input (bool& eof) = 0;
--- a/libinterp/corefcn/load-path.h Tue Dec 06 10:44:20 2016 -0500 +++ b/libinterp/corefcn/load-path.h Tue Dec 06 10:59:29 2016 -0500 @@ -48,7 +48,7 @@ typedef void (*hook_fcn_ptr) (const std::string& dir); - ~load_path (void) { } + ~load_path (void) = default; static void initialize (bool set_initial_path = false) { @@ -322,7 +322,7 @@ return *this; } - ~class_info (void) { } + ~class_info (void) = default; fcn_file_map_type method_file_map; fcn_file_map_type private_file_map; @@ -369,7 +369,7 @@ method_file_map (di.method_file_map), package_dir_map (di.package_dir_map) { } - ~dir_info (void) { } + ~dir_info (void) = default; dir_info& operator = (const dir_info& di) { @@ -431,7 +431,7 @@ file_info (const file_info& fi) : dir_name (fi.dir_name), types (fi.types) { } - ~file_info (void) { } + ~file_info (void) = default; file_info& operator = (const file_info& fi) { @@ -506,7 +506,7 @@ : prefix (l.prefix), dir_list (l.dir_list), private_fcn_map (l.private_fcn_map), method_map (l.method_map) { } - ~loader (void) { } + ~loader (void) = default; loader& operator = (const loader& l) {
--- a/libinterp/corefcn/mxarray.in.h Tue Dec 06 10:44:20 2016 -0500 +++ b/libinterp/corefcn/mxarray.in.h Tue Dec 06 10:59:29 2016 -0500 @@ -138,7 +138,7 @@ virtual mxArray *as_mxArray (void) const { return 0; } - virtual ~mxArray_base (void) { } + virtual ~mxArray_base (void) = default; virtual bool is_octave_value (void) const { return false; }
--- a/libinterp/corefcn/oct-errno.h Tue Dec 06 10:44:20 2016 -0500 +++ b/libinterp/corefcn/oct-errno.h Tue Dec 06 10:59:29 2016 -0500 @@ -41,7 +41,7 @@ public: - ~octave_errno (void) { } + ~octave_errno (void) = default; static bool instance_ok (void);
--- a/libinterp/corefcn/oct-fstrm.h Tue Dec 06 10:44:20 2016 -0500 +++ b/libinterp/corefcn/oct-fstrm.h Tue Dec 06 10:59:29 2016 -0500 @@ -70,7 +70,7 @@ protected: - ~octave_fstream (void) { } + ~octave_fstream (void) = default; private:
--- a/libinterp/corefcn/oct-handle.h Tue Dec 06 10:44:20 2016 -0500 +++ b/libinterp/corefcn/oct-handle.h Tue Dec 06 10:59:29 2016 -0500 @@ -69,7 +69,7 @@ return *this; } - ~octave_handle (void) { } + ~octave_handle (void) = default; double value (void) const { return val; }
--- a/libinterp/corefcn/oct-iostrm.h Tue Dec 06 10:44:20 2016 -0500 +++ b/libinterp/corefcn/oct-iostrm.h Tue Dec 06 10:59:29 2016 -0500 @@ -58,7 +58,7 @@ protected: - ~octave_base_iostream (void) { } + ~octave_base_iostream (void) = default; void invalid_operation (void) const; @@ -99,7 +99,7 @@ protected: - ~octave_istream (void) { } + ~octave_istream (void) = default; private: @@ -138,7 +138,7 @@ protected: - ~octave_ostream (void) { } + ~octave_ostream (void) = default; private:
--- a/libinterp/corefcn/oct-lvalue.h Tue Dec 06 10:44:20 2016 -0500 +++ b/libinterp/corefcn/oct-lvalue.h Tue Dec 06 10:59:29 2016 -0500 @@ -61,7 +61,7 @@ return *this; } - ~octave_lvalue (void) { } + ~octave_lvalue (void) = default; bool is_black_hole (void) const { return sym.is_black_hole (); }
--- a/libinterp/corefcn/oct-stdstrm.h Tue Dec 06 10:44:20 2016 -0500 +++ b/libinterp/corefcn/oct-stdstrm.h Tue Dec 06 10:59:29 2016 -0500 @@ -124,7 +124,7 @@ protected: - ~octave_stdiostream (void) { } + ~octave_stdiostream (void) = default; private: @@ -164,7 +164,7 @@ protected: - ~octave_zstdiostream (void) { } + ~octave_zstdiostream (void) = default; private:
--- a/libinterp/corefcn/oct-stream.cc Tue Dec 06 10:44:20 2016 -0500 +++ b/libinterp/corefcn/oct-stream.cc Tue Dec 06 10:59:29 2016 -0500 @@ -1801,7 +1801,7 @@ textscan (const std::string& who_arg = "textscan"); - ~textscan (void) { } + ~textscan (void) = default; octave_value scan (std::istream& isp, const std::string& fmt, octave_idx_type ntimes, @@ -5297,7 +5297,7 @@ } } - ~printf_value_cache (void) { } + ~printf_value_cache (void) = default; // Get the current value as a double and advance the internal pointer. octave_value get_next_value (char type = 0);
--- a/libinterp/corefcn/oct-stream.h Tue Dec 06 10:44:20 2016 -0500 +++ b/libinterp/corefcn/oct-stream.h Tue Dec 06 10:59:29 2016 -0500 @@ -69,7 +69,7 @@ errmsg () { } - virtual ~octave_base_stream (void) { } + virtual ~octave_base_stream (void) = default; // The remaining functions are not specific to input or output only, // and must be provided by the derived classes. @@ -418,7 +418,7 @@ public: - ~octave_stream_list (void) { } + ~octave_stream_list (void) = default; static bool instance_ok (void);
--- a/libinterp/corefcn/oct-strstrm.h Tue Dec 06 10:44:20 2016 -0500 +++ b/libinterp/corefcn/oct-strstrm.h Tue Dec 06 10:59:29 2016 -0500 @@ -60,7 +60,7 @@ protected: - ~octave_base_strstream (void) { } + ~octave_base_strstream (void) = default; private: @@ -116,7 +116,7 @@ protected: - ~octave_istrstream (void) { } + ~octave_istrstream (void) = default; private: @@ -162,7 +162,7 @@ protected: - ~octave_ostrstream (void) { } + ~octave_ostrstream (void) = default; private:
--- a/libinterp/corefcn/pr-output.cc Tue Dec 06 10:44:20 2016 -0500 +++ b/libinterp/corefcn/pr-output.cc Tue Dec 06 10:59:29 2016 -0500 @@ -165,7 +165,7 @@ return *this; } - ~float_format (void) { } + ~float_format (void) = default; float_format& scientific (void) { fmt = std::ios::scientific; return *this; } float_format& fixed (void) { fmt = std::ios::fixed; return *this; }
--- a/libinterp/corefcn/procstream.h Tue Dec 06 10:44:20 2016 -0500 +++ b/libinterp/corefcn/procstream.h Tue Dec 06 10:59:29 2016 -0500 @@ -86,7 +86,7 @@ iprocstream (const char *name, int mode = std::ios::in) : std::istream (0), procstreambase (name, mode) { } - ~iprocstream (void) { } + ~iprocstream (void) = default; void open (const std::string& name, int mode = std::ios::in) { procstreambase::open (name, mode); } @@ -116,7 +116,7 @@ oprocstream (const char *name, int mode = std::ios::out) : std::ostream (0), procstreambase (name, mode) { } - ~oprocstream (void) { } + ~oprocstream (void) = default; void open (const std::string& name, int mode = std::ios::out) { procstreambase::open (name, mode); } @@ -146,7 +146,7 @@ procstream (const char *name, int mode) : std::iostream (0), procstreambase (name, mode) { } - ~procstream (void) { } + ~procstream (void) = default; void open (const std::string& name, int mode) { procstreambase::open (name, mode); }
--- a/libinterp/corefcn/sighandlers.cc Tue Dec 06 10:44:20 2016 -0500 +++ b/libinterp/corefcn/sighandlers.cc Tue Dec 06 10:59:29 2016 -0500 @@ -90,7 +90,7 @@ base_interrupt_manager (void) { } - virtual ~base_interrupt_manager (void) { } + virtual ~base_interrupt_manager (void) = default; virtual void do_jump_to_enclosing_context (void) = 0; @@ -124,7 +124,7 @@ DUPLICATE_SAME_ACCESS); } - ~w32_interrupt_manager (void) { } + ~w32_interrupt_manager (void) = default; static void jump_to_enclosing_context_sync (void) { @@ -217,7 +217,7 @@ : base_interrupt_manager () { } - ~posix_interrupt_manager (void) { } + ~posix_interrupt_manager (void) = default; void do_jump_to_enclosing_context (void) { @@ -248,7 +248,7 @@ { public: - ~interrupt_manager (void) { } + ~interrupt_manager (void) = default; static bool init (void) { return instance_ok (); }
--- a/libinterp/corefcn/symtab.h Tue Dec 06 10:44:20 2016 -0500 +++ b/libinterp/corefcn/symtab.h Tue Dec 06 10:59:29 2016 -0500 @@ -69,7 +69,7 @@ public: - ~scope_id_cache (void) { } + ~scope_id_cache (void) = default; static scope_id alloc (void) { @@ -2293,7 +2293,7 @@ nest_parent (0), curr_fcn (0), static_workspace (false), persistent_table () { } - ~symbol_table (void) { } + ~symbol_table (void) = default; static symbol_table *get_instance (scope_id scope, bool create = true) {
--- a/libinterp/corefcn/text-renderer.h Tue Dec 06 10:44:20 2016 -0500 +++ b/libinterp/corefcn/text-renderer.h Tue Dec 06 10:59:29 2016 -0500 @@ -85,7 +85,7 @@ size (ft.size) { } - ~font (void) { } + ~font (void) = default; font& operator = (const font& ft) { @@ -132,7 +132,7 @@ color (s.color) { } - ~string (void) { } + ~string (void) = default; string& operator = (const string& s) {
--- a/libinterp/corefcn/txt-eng.h Tue Dec 06 10:44:20 2016 -0500 +++ b/libinterp/corefcn/txt-eng.h Tue Dec 06 10:59:29 2016 -0500 @@ -53,7 +53,7 @@ public: text_element (void) { } - virtual ~text_element (void) { } + virtual ~text_element (void) = default; virtual void accept (text_processor& p) = 0; @@ -69,7 +69,7 @@ text_element_string (const std::string& s = "") : text_element (), str (s) { } - ~text_element_string (void) { } + ~text_element_string (void) = default; std::string string_value (void) const { return str; } @@ -93,7 +93,7 @@ text_element_symbol (int sym) : text_element (), symbol (sym) { } - ~text_element_symbol (void) { } + ~text_element_symbol (void) = default; int get_symbol (void) const { return symbol; } @@ -214,7 +214,7 @@ text_element_fontstyle (fontstyle st) : text_element (), style (st) { } - ~text_element_fontstyle (void) { } + ~text_element_fontstyle (void) = default; fontstyle get_fontstyle (void) const { return style; } @@ -235,7 +235,7 @@ text_element_fontname (const std::string& fname) : text_element (), name (fname) { } - ~text_element_fontname (void) { } + ~text_element_fontname (void) = default; const std::string& get_fontname (void) const { return name; } @@ -256,7 +256,7 @@ text_element_fontsize (double fsize) : text_element (), size (fsize) { } - ~text_element_fontsize (void) { } + ~text_element_fontsize (void) = default; double get_fontsize (void) const { return size; } @@ -300,7 +300,7 @@ #undef ASSIGN_COLOR } - ~text_element_color (void) { } + ~text_element_color (void) = default; Matrix get_color (void) { return rgb; } @@ -348,7 +348,7 @@ protected: text_processor (void) { } - virtual ~text_processor (void) { } + virtual ~text_processor (void) = default; }; #define TEXT_ELEMENT_ACCEPT(cls) \ @@ -376,7 +376,7 @@ public: text_parser (void) { } - virtual ~text_parser (void) { } + virtual ~text_parser (void) = default; virtual text_element* parse (const std::string& s) = 0; @@ -392,7 +392,7 @@ public: text_parser_none (void) : text_parser () { } - ~text_parser_none (void) { } + ~text_parser_none (void) = default; // FIXME: is it possible to use reference counting to manage the // memory for the object returned by the text parser? That would be
--- a/libinterp/corefcn/variables.cc Tue Dec 06 10:44:20 2016 -0500 +++ b/libinterp/corefcn/variables.cc Tue Dec 06 10:59:29 2016 -0500 @@ -1304,7 +1304,7 @@ return *this; } - ~symbol_info_list (void) { } + ~symbol_info_list (void) = default; void append (const symbol_table::symbol_record& sr) {
--- a/libinterp/corefcn/workspace-element.h Tue Dec 06 10:44:20 2016 -0500 +++ b/libinterp/corefcn/workspace-element.h Tue Dec 06 10:59:29 2016 -0500 @@ -63,7 +63,7 @@ return *this; } - ~workspace_element (void) { } + ~workspace_element (void) = default; char scope (void) const { return xscope; }
--- a/libinterp/dldfcn/__init_fltk__.cc Tue Dec 06 10:44:20 2016 -0500 +++ b/libinterp/dldfcn/__init_fltk__.cc Tue Dec 06 10:59:29 2016 -0500 @@ -123,7 +123,7 @@ #endif } - ~OpenGL_fltk (void) { } + ~OpenGL_fltk (void) = default; void zoom (bool z) { @@ -2191,7 +2191,7 @@ Fl::visual (FL_RGB); } - ~fltk_graphics_toolkit (void) { } + ~fltk_graphics_toolkit (void) = default; bool is_valid (void) const { return true; }
--- a/libinterp/dldfcn/__init_gnuplot__.cc Tue Dec 06 10:44:20 2016 -0500 +++ b/libinterp/dldfcn/__init_gnuplot__.cc Tue Dec 06 10:59:29 2016 -0500 @@ -54,7 +54,7 @@ gnuplot_graphics_toolkit (void) : base_graphics_toolkit ("gnuplot") { } - ~gnuplot_graphics_toolkit (void) { } + ~gnuplot_graphics_toolkit (void) = default; bool is_valid (void) const { return true; }
--- a/libinterp/octave-value/ov-base-diag.h Tue Dec 06 10:44:20 2016 -0500 +++ b/libinterp/octave-value/ov-base-diag.h Tue Dec 06 10:59:29 2016 -0500 @@ -58,7 +58,7 @@ octave_base_diag (const octave_base_diag& m) : octave_base_value (), matrix (m.matrix), dense_cache () { } - ~octave_base_diag (void) { } + ~octave_base_diag (void) = default; size_t byte_size (void) const { return matrix.byte_size (); }
--- a/libinterp/octave-value/ov-base-int.h Tue Dec 06 10:44:20 2016 -0500 +++ b/libinterp/octave-value/ov-base-int.h Tue Dec 06 10:59:29 2016 -0500 @@ -51,7 +51,7 @@ octave_base_int_matrix (const T& nda) : octave_base_matrix<T> (nda) { } - ~octave_base_int_matrix (void) { } + ~octave_base_int_matrix (void) = default; octave_base_value *clone (void) const { return new octave_base_int_matrix (*this); } @@ -110,7 +110,7 @@ octave_base_int_scalar (const T& s) : octave_base_scalar<T> (s) { } - ~octave_base_int_scalar (void) { } + ~octave_base_int_scalar (void) = default; octave_base_value *clone (void) const { return new octave_base_int_scalar (*this); }
--- a/libinterp/octave-value/ov-base-scalar.h Tue Dec 06 10:44:20 2016 -0500 +++ b/libinterp/octave-value/ov-base-scalar.h Tue Dec 06 10:59:29 2016 -0500 @@ -55,7 +55,7 @@ octave_base_scalar (const octave_base_scalar& s) : octave_base_value (), scalar (s.scalar) { } - ~octave_base_scalar (void) { } + ~octave_base_scalar (void) = default; octave_value squeeze (void) const { return scalar; }
--- a/libinterp/octave-value/ov-base-sparse.h Tue Dec 06 10:44:20 2016 -0500 +++ b/libinterp/octave-value/ov-base-sparse.h Tue Dec 06 10:59:29 2016 -0500 @@ -72,7 +72,7 @@ octave_base_sparse (const octave_base_sparse& a) : octave_base_value (), matrix (a.matrix), typ (a.typ) { } - ~octave_base_sparse (void) { } + ~octave_base_sparse (void) = default; octave_idx_type numel (void) const { return dims ().safe_numel (); }
--- a/libinterp/octave-value/ov-base.h Tue Dec 06 10:44:20 2016 -0500 +++ b/libinterp/octave-value/ov-base.h Tue Dec 06 10:59:29 2016 -0500 @@ -214,7 +214,7 @@ octave_base_value (const octave_base_value&) : count (1) { } - virtual ~octave_base_value (void) { } + virtual ~octave_base_value (void) = default; // Unconditional clone. Always clones. virtual octave_base_value *
--- a/libinterp/octave-value/ov-bool-mat.h Tue Dec 06 10:44:20 2016 -0500 +++ b/libinterp/octave-value/ov-bool-mat.h Tue Dec 06 10:59:29 2016 -0500 @@ -77,7 +77,7 @@ octave_bool_matrix (const octave_bool_matrix& bm) : octave_base_matrix<boolNDArray> (bm) { } - ~octave_bool_matrix (void) { } + ~octave_bool_matrix (void) = default; octave_base_value *clone (void) const { return new octave_bool_matrix (*this); }
--- a/libinterp/octave-value/ov-bool-sparse.h Tue Dec 06 10:44:20 2016 -0500 +++ b/libinterp/octave-value/ov-bool-sparse.h Tue Dec 06 10:59:29 2016 -0500 @@ -75,7 +75,7 @@ octave_sparse_bool_matrix (const octave_sparse_bool_matrix& bm) : octave_base_sparse<SparseBoolMatrix> (bm) { } - ~octave_sparse_bool_matrix (void) { } + ~octave_sparse_bool_matrix (void) = default; octave_base_value *clone (void) const { return new octave_sparse_bool_matrix (*this); }
--- a/libinterp/octave-value/ov-bool.h Tue Dec 06 10:44:20 2016 -0500 +++ b/libinterp/octave-value/ov-bool.h Tue Dec 06 10:59:29 2016 -0500 @@ -62,7 +62,7 @@ octave_bool (const octave_bool& s) : octave_base_scalar<bool> (s) { } - ~octave_bool (void) { } + ~octave_bool (void) = default; octave_base_value *clone (void) const { return new octave_bool (*this); } octave_base_value *empty_clone (void) const
--- a/libinterp/octave-value/ov-builtin.h Tue Dec 06 10:44:20 2016 -0500 +++ b/libinterp/octave-value/ov-builtin.h Tue Dec 06 10:59:29 2016 -0500 @@ -54,7 +54,7 @@ const std::string& ds) : octave_function (nm, ds), f (ff), file (fnm), jtype (0) { } - ~octave_builtin (void) { } + ~octave_builtin (void) = default; std::string src_file_name (void) const { return file; }
--- a/libinterp/octave-value/ov-cell.h Tue Dec 06 10:44:20 2016 -0500 +++ b/libinterp/octave-value/ov-cell.h Tue Dec 06 10:59:29 2016 -0500 @@ -64,7 +64,7 @@ octave_cell (const octave_cell& c) : octave_base_matrix<Cell> (c), cellstr_cache () { } - ~octave_cell (void) { } + ~octave_cell (void) = default; octave_base_value *clone (void) const { return new octave_cell (*this); } octave_base_value *empty_clone (void) const { return new octave_cell (); }
--- a/libinterp/octave-value/ov-ch-mat.h Tue Dec 06 10:44:20 2016 -0500 +++ b/libinterp/octave-value/ov-ch-mat.h Tue Dec 06 10:59:29 2016 -0500 @@ -82,7 +82,7 @@ public: - ~octave_char_matrix (void) { } + ~octave_char_matrix (void) = default; octave_base_value *clone (void) const { return new octave_char_matrix (*this); }
--- a/libinterp/octave-value/ov-class.h Tue Dec 06 10:44:20 2016 -0500 +++ b/libinterp/octave-value/ov-class.h Tue Dec 06 10:59:29 2016 -0500 @@ -68,7 +68,7 @@ : octave_base_value (s), map (s.map), c_name (s.c_name), parent_list (s.parent_list), obsolete_copies (0) { } - ~octave_class (void) { } + ~octave_class (void) = default; octave_base_value *clone (void) const { return new octave_class (*this); }
--- a/libinterp/octave-value/ov-classdef.cc Tue Dec 06 10:44:20 2016 -0500 +++ b/libinterp/octave-value/ov-classdef.cc Tue Dec 06 10:59:29 2016 -0500 @@ -1097,7 +1097,7 @@ octave_classdef_superclass_ref (const octave_value_list& a) : octave_function (), args (a) { } - ~octave_classdef_superclass_ref (void) { } + ~octave_classdef_superclass_ref (void) = default; octave_function* function_value (bool = false) { return this; }
--- a/libinterp/octave-value/ov-classdef.h Tue Dec 06 10:44:20 2016 -0500 +++ b/libinterp/octave-value/ov-classdef.h Tue Dec 06 10:59:29 2016 -0500 @@ -54,7 +54,7 @@ public: cdef_object_rep (void) : refcount (1) { } - virtual ~cdef_object_rep (void) { } + virtual ~cdef_object_rep (void) = default; virtual cdef_class get_class (void) const; @@ -398,7 +398,7 @@ public: cdef_object_scalar (void) : cdef_object_base () { } - ~cdef_object_scalar (void) { } + ~cdef_object_scalar (void) = default; dim_vector dims (void) const { return dim_vector (1, 1); } @@ -520,7 +520,7 @@ cdef_meta_object_rep (void) : handle_cdef_object () { } - ~cdef_meta_object_rep (void) { } + ~cdef_meta_object_rep (void) = default; cdef_object_rep* copy (void) const { return new cdef_meta_object_rep (*this); } @@ -575,7 +575,7 @@ cdef_meta_object (const cdef_object& obj) : cdef_object (obj) { } - ~cdef_meta_object (void) { } + ~cdef_meta_object (void) = default; bool is_class (void) const { return get_rep ()->is_class (); } @@ -1249,7 +1249,7 @@ cdef_package_rep (void) : cdef_meta_object_rep (), member_count (0) { } - ~cdef_package_rep (void) { } + ~cdef_package_rep (void) = default; cdef_object_rep* copy (void) const { return new cdef_package_rep (*this); } @@ -1599,7 +1599,7 @@ cdef_manager& operator = (const cdef_manager&); - ~cdef_manager (void) { } + ~cdef_manager (void) = default; static void create_instance (void);
--- a/libinterp/octave-value/ov-colon.h Tue Dec 06 10:44:20 2016 -0500 +++ b/libinterp/octave-value/ov-colon.h Tue Dec 06 10:59:29 2016 -0500 @@ -54,7 +54,7 @@ octave_magic_colon (const octave_magic_colon&) : octave_base_value () { } - ~octave_magic_colon (void) { } + ~octave_magic_colon (void) = default; octave_base_value *clone (void) const { return new octave_magic_colon (*this); }
--- a/libinterp/octave-value/ov-complex.cc Tue Dec 06 10:44:20 2016 -0500 +++ b/libinterp/octave-value/ov-complex.cc Tue Dec 06 10:59:29 2016 -0500 @@ -72,7 +72,7 @@ complex_index_exception (const std::string& value) : index_exception (value) { } - ~complex_index_exception (void) { } + ~complex_index_exception (void) = default; std::string details (void) const {
--- a/libinterp/octave-value/ov-complex.h Tue Dec 06 10:44:20 2016 -0500 +++ b/libinterp/octave-value/ov-complex.h Tue Dec 06 10:59:29 2016 -0500 @@ -62,7 +62,7 @@ octave_complex (const octave_complex& c) : octave_base_scalar<Complex> (c) { } - ~octave_complex (void) { } + ~octave_complex (void) = default; octave_base_value *clone (void) const { return new octave_complex (*this); }
--- a/libinterp/octave-value/ov-cs-list.h Tue Dec 06 10:44:20 2016 -0500 +++ b/libinterp/octave-value/ov-cs-list.h Tue Dec 06 10:59:29 2016 -0500 @@ -58,7 +58,7 @@ octave_cs_list (const octave_cs_list& l) : octave_base_value (), lst (l.lst) { } - ~octave_cs_list (void) { } + ~octave_cs_list (void) = default; octave_base_value *clone (void) const { return new octave_cs_list (*this); } octave_base_value *empty_clone (void) const { return new octave_cs_list (); }
--- a/libinterp/octave-value/ov-cx-diag.h Tue Dec 06 10:44:20 2016 -0500 +++ b/libinterp/octave-value/ov-cx-diag.h Tue Dec 06 10:59:29 2016 -0500 @@ -48,7 +48,7 @@ octave_complex_diag_matrix (const octave_complex_diag_matrix& m) : octave_base_diag<ComplexDiagMatrix, ComplexMatrix> (m) { } - ~octave_complex_diag_matrix (void) { } + ~octave_complex_diag_matrix (void) = default; octave_base_value *clone (void) const { return new octave_complex_diag_matrix (*this); }
--- a/libinterp/octave-value/ov-cx-mat.h Tue Dec 06 10:44:20 2016 -0500 +++ b/libinterp/octave-value/ov-cx-mat.h Tue Dec 06 10:59:29 2016 -0500 @@ -81,7 +81,7 @@ octave_complex_matrix (const octave_complex_matrix& cm) : octave_base_matrix<ComplexNDArray> (cm) { } - ~octave_complex_matrix (void) { } + ~octave_complex_matrix (void) = default; octave_base_value *clone (void) const { return new octave_complex_matrix (*this); }
--- a/libinterp/octave-value/ov-cx-sparse.h Tue Dec 06 10:44:20 2016 -0500 +++ b/libinterp/octave-value/ov-cx-sparse.h Tue Dec 06 10:59:29 2016 -0500 @@ -86,7 +86,7 @@ octave_sparse_complex_matrix (const octave_sparse_complex_matrix& cm) : octave_base_sparse<SparseComplexMatrix> (cm) { } - ~octave_sparse_complex_matrix (void) { } + ~octave_sparse_complex_matrix (void) = default; octave_base_value *clone (void) const { return new octave_sparse_complex_matrix (*this); }
--- a/libinterp/octave-value/ov-fcn-handle.h Tue Dec 06 10:44:20 2016 -0500 +++ b/libinterp/octave-value/ov-fcn-handle.h Tue Dec 06 10:59:29 2016 -0500 @@ -67,7 +67,7 @@ overloads = fh.overloads; } - ~octave_fcn_handle (void) { } + ~octave_fcn_handle (void) = default; octave_base_value *clone (void) const { return new octave_fcn_handle (*this); }
--- a/libinterp/octave-value/ov-fcn-inline.h Tue Dec 06 10:44:20 2016 -0500 +++ b/libinterp/octave-value/ov-fcn-inline.h Tue Dec 06 10:59:29 2016 -0500 @@ -52,7 +52,7 @@ octave_fcn_inline (const octave_fcn_inline& fi) : octave_fcn_handle (fi), iftext (fi.iftext), ifargs (fi.ifargs) { } - ~octave_fcn_inline (void) { } + ~octave_fcn_inline (void) = default; octave_base_value *clone (void) const { return new octave_fcn_inline (*this); }
--- a/libinterp/octave-value/ov-fcn.h Tue Dec 06 10:44:20 2016 -0500 +++ b/libinterp/octave-value/ov-fcn.h Tue Dec 06 10:59:29 2016 -0500 @@ -50,7 +50,7 @@ xdispatch_class (), xpackage_name (), my_name (), my_dir_name (), doc () { } - ~octave_function (void) { } + ~octave_function (void) = default; octave_base_value *clone (void) const; octave_base_value *empty_clone (void) const;
--- a/libinterp/octave-value/ov-float.h Tue Dec 06 10:44:20 2016 -0500 +++ b/libinterp/octave-value/ov-float.h Tue Dec 06 10:59:29 2016 -0500 @@ -64,7 +64,7 @@ octave_float_scalar (const octave_float_scalar& s) : octave_base_scalar<float> (s) { } - ~octave_float_scalar (void) { } + ~octave_float_scalar (void) = default; octave_base_value *clone (void) const { return new octave_float_scalar (*this); }
--- a/libinterp/octave-value/ov-flt-complex.h Tue Dec 06 10:44:20 2016 -0500 +++ b/libinterp/octave-value/ov-flt-complex.h Tue Dec 06 10:59:29 2016 -0500 @@ -62,7 +62,7 @@ octave_float_complex (const octave_float_complex& c) : octave_base_scalar<FloatComplex> (c) { } - ~octave_float_complex (void) { } + ~octave_float_complex (void) = default; octave_base_value *clone (void) const { return new octave_float_complex (*this); }
--- a/libinterp/octave-value/ov-flt-cx-diag.h Tue Dec 06 10:44:20 2016 -0500 +++ b/libinterp/octave-value/ov-flt-cx-diag.h Tue Dec 06 10:59:29 2016 -0500 @@ -48,7 +48,7 @@ octave_float_complex_diag_matrix (const octave_float_complex_diag_matrix& m) : octave_base_diag<FloatComplexDiagMatrix, FloatComplexMatrix> (m) { } - ~octave_float_complex_diag_matrix (void) { } + ~octave_float_complex_diag_matrix (void) = default; octave_base_value *clone (void) const { return new octave_float_complex_diag_matrix (*this); }
--- a/libinterp/octave-value/ov-flt-cx-mat.h Tue Dec 06 10:44:20 2016 -0500 +++ b/libinterp/octave-value/ov-flt-cx-mat.h Tue Dec 06 10:59:29 2016 -0500 @@ -81,7 +81,7 @@ octave_float_complex_matrix (const octave_float_complex_matrix& cm) : octave_base_matrix<FloatComplexNDArray> (cm) { } - ~octave_float_complex_matrix (void) { } + ~octave_float_complex_matrix (void) = default; octave_base_value *clone (void) const { return new octave_float_complex_matrix (*this); }
--- a/libinterp/octave-value/ov-flt-re-diag.h Tue Dec 06 10:44:20 2016 -0500 +++ b/libinterp/octave-value/ov-flt-re-diag.h Tue Dec 06 10:59:29 2016 -0500 @@ -48,7 +48,7 @@ octave_float_diag_matrix (const octave_float_diag_matrix& m) : octave_base_diag<FloatDiagMatrix, FloatMatrix> (m) { } - ~octave_float_diag_matrix (void) { } + ~octave_float_diag_matrix (void) = default; octave_base_value *clone (void) const { return new octave_float_diag_matrix (*this); }
--- a/libinterp/octave-value/ov-flt-re-mat.h Tue Dec 06 10:44:20 2016 -0500 +++ b/libinterp/octave-value/ov-flt-re-mat.h Tue Dec 06 10:59:29 2016 -0500 @@ -81,7 +81,7 @@ octave_float_matrix (const octave_float_matrix& m) : octave_base_matrix<FloatNDArray> (m) { } - ~octave_float_matrix (void) { } + ~octave_float_matrix (void) = default; octave_base_value *clone (void) const { return new octave_float_matrix (*this); }
--- a/libinterp/octave-value/ov-intx.h Tue Dec 06 10:44:20 2016 -0500 +++ b/libinterp/octave-value/ov-intx.h Tue Dec 06 10:59:29 2016 -0500 @@ -64,7 +64,7 @@ : octave_base_int_matrix<intNDArray<OCTAVE_INT_T> > (intNDArray<OCTAVE_INT_T> (nda)) { } - ~OCTAVE_VALUE_INT_MATRIX_T (void) { } + ~OCTAVE_VALUE_INT_MATRIX_T (void) = default; octave_base_value *clone (void) const { return new OCTAVE_VALUE_INT_MATRIX_T (*this); } @@ -387,7 +387,7 @@ OCTAVE_VALUE_INT_SCALAR_T (const OCTAVE_INT_T& nda) : octave_base_int_scalar<OCTAVE_INT_T> (nda) { } - ~OCTAVE_VALUE_INT_SCALAR_T (void) { } + ~OCTAVE_VALUE_INT_SCALAR_T (void) = default; octave_base_value *clone (void) const { return new OCTAVE_VALUE_INT_SCALAR_T (*this); }
--- a/libinterp/octave-value/ov-lazy-idx.h Tue Dec 06 10:44:20 2016 -0500 +++ b/libinterp/octave-value/ov-lazy-idx.h Tue Dec 06 10:59:29 2016 -0500 @@ -45,7 +45,7 @@ octave_lazy_index (const octave_lazy_index& i) : octave_base_value (), index (i.index), value (i.value) { } - ~octave_lazy_index (void) { } + ~octave_lazy_index (void) = default; octave_base_value *clone (void) const { return new octave_lazy_index (*this); }
--- a/libinterp/octave-value/ov-re-diag.h Tue Dec 06 10:44:20 2016 -0500 +++ b/libinterp/octave-value/ov-re-diag.h Tue Dec 06 10:59:29 2016 -0500 @@ -48,7 +48,7 @@ octave_diag_matrix (const octave_diag_matrix& m) : octave_base_diag<DiagMatrix, Matrix> (m) { } - ~octave_diag_matrix (void) { } + ~octave_diag_matrix (void) = default; octave_base_value *clone (void) const { return new octave_diag_matrix (*this); }
--- a/libinterp/octave-value/ov-re-mat.h Tue Dec 06 10:44:20 2016 -0500 +++ b/libinterp/octave-value/ov-re-mat.h Tue Dec 06 10:59:29 2016 -0500 @@ -96,7 +96,7 @@ set_idx_cache (cache); } - ~octave_matrix (void) { } + ~octave_matrix (void) = default; octave_base_value *clone (void) const { return new octave_matrix (*this); } octave_base_value *empty_clone (void) const { return new octave_matrix (); }
--- a/libinterp/octave-value/ov-re-sparse.h Tue Dec 06 10:44:20 2016 -0500 +++ b/libinterp/octave-value/ov-re-sparse.h Tue Dec 06 10:59:29 2016 -0500 @@ -84,7 +84,7 @@ octave_sparse_matrix (const octave_sparse_matrix& m) : octave_base_sparse<SparseMatrix> (m) { } - ~octave_sparse_matrix (void) { } + ~octave_sparse_matrix (void) = default; octave_base_value *clone (void) const { return new octave_sparse_matrix (*this); }
--- a/libinterp/octave-value/ov-scalar.h Tue Dec 06 10:44:20 2016 -0500 +++ b/libinterp/octave-value/ov-scalar.h Tue Dec 06 10:59:29 2016 -0500 @@ -63,7 +63,7 @@ octave_scalar (const octave_scalar& s) : octave_base_scalar<double> (s) { } - ~octave_scalar (void) { } + ~octave_scalar (void) = default; octave_base_value *clone (void) const { return new octave_scalar (*this); }
--- a/libinterp/octave-value/ov-str-mat.h Tue Dec 06 10:44:20 2016 -0500 +++ b/libinterp/octave-value/ov-str-mat.h Tue Dec 06 10:59:29 2016 -0500 @@ -84,7 +84,7 @@ octave_char_matrix_str (const octave_char_matrix_str& chms) : octave_char_matrix (chms) { } - ~octave_char_matrix_str (void) { } + ~octave_char_matrix_str (void) = default; octave_base_value *clone (void) const { return new octave_char_matrix_str (*this); } @@ -213,7 +213,7 @@ octave_char_matrix_sq_str (const octave_char_matrix_sq_str& chms) : octave_char_matrix_str (chms) { } - ~octave_char_matrix_sq_str (void) { } + ~octave_char_matrix_sq_str (void) = default; octave_base_value *clone (void) const { return new octave_char_matrix_sq_str (*this); }
--- a/libinterp/octave-value/ov-struct.h Tue Dec 06 10:44:20 2016 -0500 +++ b/libinterp/octave-value/ov-struct.h Tue Dec 06 10:59:29 2016 -0500 @@ -58,7 +58,7 @@ octave_struct (const octave_struct& s) : octave_base_value (), map (s.map) { } - ~octave_struct (void) { } + ~octave_struct (void) = default; octave_base_value *clone (void) const { return new octave_struct (*this); } octave_base_value *empty_clone (void) const { return new octave_struct (); } @@ -178,7 +178,7 @@ octave_scalar_struct (const octave_scalar_struct& s) : octave_base_value (), map (s.map) { } - ~octave_scalar_struct (void) { } + ~octave_scalar_struct (void) = default; octave_base_value *clone (void) const { return new octave_scalar_struct (*this); }
--- a/libinterp/octave-value/ov-typeinfo.h Tue Dec 06 10:44:20 2016 -0500 +++ b/libinterp/octave-value/ov-typeinfo.h Tue Dec 06 10:59:29 2016 -0500 @@ -206,7 +206,7 @@ pref_assign_conv (dim_vector (init_tab_sz, init_tab_sz), -1), widening_ops (dim_vector (init_tab_sz, init_tab_sz), 0) { } - ~octave_value_typeinfo (void) { } + ~octave_value_typeinfo (void) = default; private:
--- a/libinterp/octave-value/ov-usr-fcn.h Tue Dec 06 10:44:20 2016 -0500 +++ b/libinterp/octave-value/ov-usr-fcn.h Tue Dec 06 10:59:29 2016 -0500 @@ -57,7 +57,7 @@ octave_user_code (void) : octave_function () { } - ~octave_user_code (void) { } + ~octave_user_code (void) = default; bool is_user_code (void) const { return true; }
--- a/libinterp/octave-value/ovl.h Tue Dec 06 10:44:20 2016 -0500 +++ b/libinterp/octave-value/ovl.h Tue Dec 06 10:59:29 2016 -0500 @@ -70,7 +70,7 @@ // Concatenation constructor. octave_value_list (const std::list<octave_value_list>&); - ~octave_value_list (void) { } + ~octave_value_list (void) = default; octave_value_list& operator = (const octave_value_list& obj) {
--- a/libinterp/octave.h Tue Dec 06 10:44:20 2016 -0500 +++ b/libinterp/octave.h Tue Dec 06 10:59:29 2016 -0500 @@ -291,7 +291,7 @@ : application (argc, argv) { } - ~cli_application (void) { } + ~cli_application (void) = default; int execute (void); @@ -316,7 +316,7 @@ : application (argc, argv) { } - ~embedded_application (void) { } + ~embedded_application (void) = default; void create_interpreter (void);
--- a/libinterp/parse-tree/lex.h Tue Dec 06 10:44:20 2016 -0500 +++ b/libinterp/parse-tree/lex.h Tue Dec 06 10:59:29 2016 -0500 @@ -116,7 +116,7 @@ return *this; } - ~bbp_nesting_level (void) { } + ~bbp_nesting_level (void) = default; void reset (void) {
--- a/libinterp/parse-tree/parse.h Tue Dec 06 10:44:20 2016 -0500 +++ b/libinterp/parse-tree/parse.h Tue Dec 06 10:59:29 2016 -0500 @@ -491,7 +491,7 @@ : base_parser (lxr) { } - ~parser (void) { } + ~parser (void) = default; int run (void); @@ -513,7 +513,7 @@ : base_parser (*(new octave::push_lexer ())) { } - ~push_parser (void) { } + ~push_parser (void) = default; int run (const std::string& input, bool eof);
--- a/libinterp/parse-tree/pt-binop.h Tue Dec 06 10:44:20 2016 -0500 +++ b/libinterp/parse-tree/pt-binop.h Tue Dec 06 10:59:29 2016 -0500 @@ -153,7 +153,7 @@ int l = -1, int c = -1, type t = unknown) : tree_binary_expression (a, b, l, c), etype (t) { } - ~tree_boolean_expression (void) { } + ~tree_boolean_expression (void) = default; bool is_boolean_expression (void) const { return true; }
--- a/libinterp/parse-tree/pt-bp.h Tue Dec 06 10:44:20 2016 -0500 +++ b/libinterp/parse-tree/pt-bp.h Tue Dec 06 10:59:29 2016 -0500 @@ -45,7 +45,7 @@ tree_breakpoint (int l, action a, const std::string& c = pt_bp_empty_string) : line (l), act (a), condition (c), found (false), bp_list () { } - ~tree_breakpoint (void) { } + ~tree_breakpoint (void) = default; bool success (void) const { return found; }
--- a/libinterp/parse-tree/pt-cell.h Tue Dec 06 10:44:20 2016 -0500 +++ b/libinterp/parse-tree/pt-cell.h Tue Dec 06 10:59:29 2016 -0500 @@ -47,7 +47,7 @@ : tree_array_list (row, l, c) { } - ~tree_cell (void) { } + ~tree_cell (void) = default; bool is_cell (void) const { return true; }
--- a/libinterp/parse-tree/pt-check.h Tue Dec 06 10:44:20 2016 -0500 +++ b/libinterp/parse-tree/pt-check.h Tue Dec 06 10:59:29 2016 -0500 @@ -39,7 +39,7 @@ tree_checker (void) : do_lvalue_check (false), file_name () { } - ~tree_checker (void) { } + ~tree_checker (void) = default; void visit_argument_list (tree_argument_list&);
--- a/libinterp/parse-tree/pt-classdef.h Tue Dec 06 10:44:20 2016 -0500 +++ b/libinterp/parse-tree/pt-classdef.h Tue Dec 06 10:59:29 2016 -0500 @@ -105,7 +105,7 @@ tree_classdef_superclass (const std::string& cname) : cls_name (cname) { } - ~tree_classdef_superclass (void) { } + ~tree_classdef_superclass (void) = default; std::string class_name (void) { return cls_name; } @@ -265,7 +265,7 @@ int l = -1, int c = -1) : tree_classdef_element<tree_classdef_property *> (a, plist, lc, tc, l, c) { } - ~tree_classdef_properties_block (void) { } + ~tree_classdef_properties_block (void) = default; void accept (tree_walker&); @@ -289,7 +289,7 @@ tree_classdef_methods_list (const octave::base_list<octave_value>& a) : octave::base_list<octave_value> (a) { } - ~tree_classdef_methods_list (void) { } + ~tree_classdef_methods_list (void) = default; void accept (tree_walker&); @@ -312,7 +312,7 @@ octave_comment_list *tc, int l = -1, int c = -1) : tree_classdef_element<octave_value> (a, mlist, lc, tc, l, c) { } - ~tree_classdef_methods_block (void) { } + ~tree_classdef_methods_block (void) = default; void accept (tree_walker&); @@ -386,7 +386,7 @@ octave_comment_list *tc, int l = -1, int c = -1) : tree_classdef_element<tree_classdef_event *> (a, elist, lc, tc, l, c) { } - ~tree_classdef_events_block (void) { } + ~tree_classdef_events_block (void) = default; void accept (tree_walker&); @@ -467,7 +467,7 @@ octave_comment_list *tc, int l = -1, int c = -1) : tree_classdef_element<tree_classdef_enum *> (a, elist, lc, tc, l, c) { } - ~tree_classdef_enum_block (void) { } + ~tree_classdef_enum_block (void) = default; void accept (tree_walker&);
--- a/libinterp/parse-tree/pt-cmd.h Tue Dec 06 10:44:20 2016 -0500 +++ b/libinterp/parse-tree/pt-cmd.h Tue Dec 06 10:59:29 2016 -0500 @@ -44,7 +44,7 @@ tree_command (int l = -1, int c = -1) : tree (l, c) { } - virtual ~tree_command (void) { } + virtual ~tree_command (void) = default; virtual tree_command *dup (symbol_table::scope_id, symbol_table::context_id context) const = 0; @@ -69,7 +69,7 @@ int l = -1, int c = -1) : tree_command (l, c), eof (e), orig_cmd (cmd) { } - ~tree_no_op_command (void) { } + ~tree_no_op_command (void) = default; tree_command *dup (symbol_table::scope_id scope, symbol_table::context_id context) const; @@ -108,7 +108,7 @@ tree_function_def (octave_function *f, int l = -1, int c = -1) : tree_command (l, c), fcn (f) { } - ~tree_function_def (void) { } + ~tree_function_def (void) = default; tree_command *dup (symbol_table::scope_id scope, symbol_table::context_id context) const;
--- a/libinterp/parse-tree/pt-const.h Tue Dec 06 10:44:20 2016 -0500 +++ b/libinterp/parse-tree/pt-const.h Tue Dec 06 10:59:29 2016 -0500 @@ -52,7 +52,7 @@ int l = -1, int c = -1) : tree_expression (l, c), val (v), orig_text (ot) { } - ~tree_constant (void) { } + ~tree_constant (void) = default; bool has_magic_end (void) const { return false; }
--- a/libinterp/parse-tree/pt-decl.h Tue Dec 06 10:44:20 2016 -0500 +++ b/libinterp/parse-tree/pt-decl.h Tue Dec 06 10:59:29 2016 -0500 @@ -193,7 +193,7 @@ tree_global_command (tree_decl_init_list *t, int l = -1, int c = -1) : tree_decl_command ("global", t, l, c) { } - ~tree_global_command (void) { } + ~tree_global_command (void) = default; tree_command *dup (symbol_table::scope_id scope, symbol_table::context_id context) const; @@ -224,7 +224,7 @@ tree_persistent_command (tree_decl_init_list *t, int l = -1, int c = -1) : tree_decl_command ("persistent", t, l, c) { } - ~tree_persistent_command (void) { } + ~tree_persistent_command (void) = default; tree_command *dup (symbol_table::scope_id scope, symbol_table::context_id context) const;
--- a/libinterp/parse-tree/pt-eval.h Tue Dec 06 10:44:20 2016 -0500 +++ b/libinterp/parse-tree/pt-eval.h Tue Dec 06 10:59:29 2016 -0500 @@ -52,7 +52,7 @@ : m_interp_context (interp_context) { } - ~tree_evaluator (void) { } + ~tree_evaluator (void) = default; void visit_anon_fcn_handle (tree_anon_fcn_handle&);
--- a/libinterp/parse-tree/pt-exp.h Tue Dec 06 10:44:20 2016 -0500 +++ b/libinterp/parse-tree/pt-exp.h Tue Dec 06 10:59:29 2016 -0500 @@ -45,7 +45,7 @@ : tree (l, c), num_parens (0), postfix_index_type ('\0'), for_cmd_expr (false), print_flag (false) { } - virtual ~tree_expression (void) { } + virtual ~tree_expression (void) = default; virtual bool has_magic_end (void) const = 0;
--- a/libinterp/parse-tree/pt-fcn-handle.h Tue Dec 06 10:44:20 2016 -0500 +++ b/libinterp/parse-tree/pt-fcn-handle.h Tue Dec 06 10:59:29 2016 -0500 @@ -53,7 +53,7 @@ tree_fcn_handle (const std::string& n, int l = -1, int c = -1) : tree_expression (l, c), nm (n) { } - ~tree_fcn_handle (void) { } + ~tree_fcn_handle (void) = default; bool has_magic_end (void) const { return false; }
--- a/libinterp/parse-tree/pt-funcall.h Tue Dec 06 10:44:20 2016 -0500 +++ b/libinterp/parse-tree/pt-funcall.h Tue Dec 06 10:59:29 2016 -0500 @@ -48,7 +48,7 @@ error ("tree_funcall: invalid function"); } - ~tree_funcall (void) { } + ~tree_funcall (void) = default; bool has_magic_end (void) const { return false; }
--- a/libinterp/parse-tree/pt-id.h Tue Dec 06 10:44:20 2016 -0500 +++ b/libinterp/parse-tree/pt-id.h Tue Dec 06 10:59:29 2016 -0500 @@ -56,7 +56,7 @@ symbol_table::scope_id sc = symbol_table::current_scope ()) : tree_expression (l, c), sym (s, sc) { } - ~tree_identifier (void) { } + ~tree_identifier (void) = default; bool has_magic_end (void) const { return (name () == "end"); }
--- a/libinterp/parse-tree/pt-jump.h Tue Dec 06 10:44:20 2016 -0500 +++ b/libinterp/parse-tree/pt-jump.h Tue Dec 06 10:59:29 2016 -0500 @@ -40,7 +40,7 @@ tree_break_command (int l = -1, int c = -1) : tree_command (l, c) { } - ~tree_break_command (void) { } + ~tree_break_command (void) = default; tree_command *dup (symbol_table::scope_id scope, symbol_table::context_id context) const; @@ -68,7 +68,7 @@ tree_continue_command (int l = -1, int c = -1) : tree_command (l, c) { } - ~tree_continue_command (void) { } + ~tree_continue_command (void) = default; tree_command *dup (symbol_table::scope_id scope, symbol_table::context_id context) const; @@ -96,7 +96,7 @@ tree_return_command (int l = -1, int c = -1) : tree_command (l, c) { } - ~tree_return_command (void) { } + ~tree_return_command (void) = default; tree_command *dup (symbol_table::scope_id scope, symbol_table::context_id context) const;
--- a/libinterp/parse-tree/pt-loop.h Tue Dec 06 10:44:20 2016 -0500 +++ b/libinterp/parse-tree/pt-loop.h Tue Dec 06 10:59:29 2016 -0500 @@ -155,7 +155,7 @@ int l = -1, int c = -1) : tree_while_command (e, lst, lc, tc, l, c) { } - ~tree_do_until_command (void) { } + ~tree_do_until_command (void) = default; tree_command *dup (symbol_table::scope_id scope, symbol_table::context_id context) const;
--- a/libinterp/parse-tree/pt-mat.cc Tue Dec 06 10:44:20 2016 -0500 +++ b/libinterp/parse-tree/pt-mat.cc Tue Dec 06 10:59:29 2016 -0500 @@ -85,7 +85,7 @@ first_elem_is_struct (false), class_nm (), ok (false) { init (row); } - ~tm_row_const_rep (void) { } + ~tm_row_const_rep (void) = default; octave_refcount<int> count; @@ -473,7 +473,7 @@ any_class (false), class_nm (), ok (false) { init (tm); } - ~tm_const (void) { } + ~tm_const (void) = default; octave_idx_type rows (void) const { return dv.elem (0); } octave_idx_type cols (void) const { return dv.elem (1); }
--- a/libinterp/parse-tree/pt-mat.h Tue Dec 06 10:44:20 2016 -0500 +++ b/libinterp/parse-tree/pt-mat.h Tue Dec 06 10:59:29 2016 -0500 @@ -50,7 +50,7 @@ : tree_array_list (row, l, c) { } - ~tree_matrix (void) { } + ~tree_matrix (void) = default; bool is_matrix (void) const { return true; }
--- a/libinterp/parse-tree/pt-misc.h Tue Dec 06 10:44:20 2016 -0500 +++ b/libinterp/parse-tree/pt-misc.h Tue Dec 06 10:59:29 2016 -0500 @@ -143,7 +143,7 @@ tree_va_return_list (void) { } - ~tree_va_return_list (void) { } + ~tree_va_return_list (void) = default; private:
--- a/libinterp/parse-tree/pt-pr-code.h Tue Dec 06 10:44:20 2016 -0500 +++ b/libinterp/parse-tree/pt-pr-code.h Tue Dec 06 10:59:29 2016 -0500 @@ -53,7 +53,7 @@ nesting.push ('n'); } - ~tree_print_code (void) { } + ~tree_print_code (void) = default; void visit_anon_fcn_handle (tree_anon_fcn_handle&);
--- a/libinterp/parse-tree/pt-unop.h Tue Dec 06 10:44:20 2016 -0500 +++ b/libinterp/parse-tree/pt-unop.h Tue Dec 06 10:59:29 2016 -0500 @@ -97,7 +97,7 @@ = octave_value::unknown_unary_op) : tree_unary_expression (e, l, c, t) { } - ~tree_prefix_expression (void) { } + ~tree_prefix_expression (void) = default; bool rvalue_ok (void) const { return true; } @@ -136,7 +136,7 @@ = octave_value::unknown_unary_op) : tree_unary_expression (e, l, c, t) { } - ~tree_postfix_expression (void) { } + ~tree_postfix_expression (void) = default; bool rvalue_ok (void) const { return true; }
--- a/libinterp/parse-tree/pt-walk.h Tue Dec 06 10:44:20 2016 -0500 +++ b/libinterp/parse-tree/pt-walk.h Tue Dec 06 10:59:29 2016 -0500 @@ -272,7 +272,7 @@ tree_walker (void) { } - virtual ~tree_walker (void) { } + virtual ~tree_walker (void) = default; private:
--- a/libinterp/parse-tree/pt.h Tue Dec 06 10:44:20 2016 -0500 +++ b/libinterp/parse-tree/pt.h Tue Dec 06 10:59:29 2016 -0500 @@ -44,7 +44,7 @@ tree (int l = -1, int c = -1) : line_num (l), column_num (c), bp (NULL) { } - virtual ~tree (void) { } + virtual ~tree (void) = default; virtual int line (void) const { return line_num; }
--- a/liboctave/array/DiagArray2.h Tue Dec 06 10:44:20 2016 -0500 +++ b/liboctave/array/DiagArray2.h Tue Dec 06 10:59:29 2016 -0500 @@ -68,7 +68,7 @@ DiagArray2 (const DiagArray2<U>& a) : Array<T> (a.extract_diag ()), d1 (a.dim1 ()), d2 (a.dim2 ()) { } - ~DiagArray2 (void) { } + ~DiagArray2 (void) = default; DiagArray2<T>& operator = (const DiagArray2<T>& a) {
--- a/liboctave/array/MArray.h Tue Dec 06 10:44:20 2016 -0500 +++ b/liboctave/array/MArray.h Tue Dec 06 10:59:29 2016 -0500 @@ -80,7 +80,7 @@ template <typename U> MArray (const Array<U>& a) : Array<T> (a) { } - ~MArray (void) { } + ~MArray (void) = default; MArray<T>& operator = (const MArray<T>& a) {
--- a/liboctave/array/MDiagArray2.h Tue Dec 06 10:44:20 2016 -0500 +++ b/liboctave/array/MDiagArray2.h Tue Dec 06 10:59:29 2016 -0500 @@ -73,7 +73,7 @@ MDiagArray2 (const Array<T>& a, octave_idx_type r, octave_idx_type c) : DiagArray2<T> (a, r, c) { } - ~MDiagArray2 (void) { } + ~MDiagArray2 (void) = default; MDiagArray2<T>& operator = (const MDiagArray2<T>& a) {
--- a/liboctave/array/MSparse.h Tue Dec 06 10:44:20 2016 -0500 +++ b/liboctave/array/MSparse.h Tue Dec 06 10:59:29 2016 -0500 @@ -69,7 +69,7 @@ MSparse (octave_idx_type r, octave_idx_type c, octave_idx_type num_nz) : Sparse<T> (r, c, num_nz) { } - ~MSparse (void) { } + ~MSparse (void) = default; MSparse<T>& operator = (const MSparse<T>& a) {
--- a/liboctave/array/idx-vector.h Tue Dec 06 10:44:20 2016 -0500 +++ b/liboctave/array/idx-vector.h Tue Dec 06 10:59:29 2016 -0500 @@ -74,7 +74,7 @@ public: idx_base_rep (void) : count (1), err (false) { } - virtual ~idx_base_rep (void) { } + virtual ~idx_base_rep (void) = default; // Non-range-checking element query. virtual octave_idx_type xelem (octave_idx_type i) const = 0;
--- a/liboctave/cruft/misc/quit.h Tue Dec 06 10:44:20 2016 -0500 +++ b/liboctave/cruft/misc/quit.h Tue Dec 06 10:59:29 2016 -0500 @@ -80,7 +80,7 @@ return *this; } - ~execution_exception (void) { } + ~execution_exception (void) = default; virtual void set_stack_trace (const std::string& st) { @@ -126,7 +126,7 @@ return *this; } - ~exit_exception (void) { } + ~exit_exception (void) = default; int exit_status (void) const { return m_exit_status; }
--- a/liboctave/numeric/CollocWt.h Tue Dec 06 10:44:20 2016 -0500 +++ b/liboctave/numeric/CollocWt.h Tue Dec 06 10:59:29 2016 -0500 @@ -84,7 +84,7 @@ return *this; } - ~CollocWt (void) { } + ~CollocWt (void) = default; CollocWt& resize (octave_idx_type nc) {
--- a/liboctave/numeric/DAE.h Tue Dec 06 10:44:20 2016 -0500 +++ b/liboctave/numeric/DAE.h Tue Dec 06 10:59:29 2016 -0500 @@ -57,7 +57,7 @@ return *this; } - virtual ~DAE (void) { } + virtual ~DAE (void) = default; }; #endif
--- a/liboctave/numeric/DAEFunc.h Tue Dec 06 10:44:20 2016 -0500 +++ b/liboctave/numeric/DAEFunc.h Tue Dec 06 10:59:29 2016 -0500 @@ -68,7 +68,7 @@ return *this; } - virtual ~DAEFunc (void) { } + virtual ~DAEFunc (void) = default; DAERHSFunc function (void) const { return fun; }
--- a/liboctave/numeric/DAERT.h Tue Dec 06 10:44:20 2016 -0500 +++ b/liboctave/numeric/DAERT.h Tue Dec 06 10:59:29 2016 -0500 @@ -58,7 +58,7 @@ return *this; } - virtual ~DAERT (void) { } + virtual ~DAERT (void) = default; void initialize (const ColumnVector& xx, const ColumnVector& xxdot, double tt)
--- a/liboctave/numeric/DAERTFunc.h Tue Dec 06 10:44:20 2016 -0500 +++ b/liboctave/numeric/DAERTFunc.h Tue Dec 06 10:59:29 2016 -0500 @@ -63,7 +63,7 @@ return *this; } - virtual ~DAERTFunc (void) { } + virtual ~DAERTFunc (void) = default; DAERTConstrFunc constraint_function (void) const { return constr; }
--- a/liboctave/numeric/DASPK.h Tue Dec 06 10:44:20 2016 -0500 +++ b/liboctave/numeric/DASPK.h Tue Dec 06 10:59:29 2016 -0500 @@ -49,7 +49,7 @@ liw (0), lrw (0), info (), iwork (), rwork (), abs_tol (), rel_tol () { } - ~DASPK (void) { } + ~DASPK (void) = default; ColumnVector do_integrate (double t);
--- a/liboctave/numeric/DASRT.h Tue Dec 06 10:44:20 2016 -0500 +++ b/liboctave/numeric/DASRT.h Tue Dec 06 10:59:29 2016 -0500 @@ -54,7 +54,7 @@ return *this; } - ~DASRT_result (void) { } + ~DASRT_result (void) = default; Matrix state (void) const { return x; } Matrix deriv (void) const { return xdot; } @@ -92,7 +92,7 @@ abs_tol (), rel_tol () { } - ~DASRT (void) { } + ~DASRT (void) = default; DASRT_result integrate (const ColumnVector& tout);
--- a/liboctave/numeric/DASSL.h Tue Dec 06 10:44:20 2016 -0500 +++ b/liboctave/numeric/DASSL.h Tue Dec 06 10:59:29 2016 -0500 @@ -49,7 +49,7 @@ liw (0), lrw (0), info (), iwork (), rwork (), abs_tol (), rel_tol () { } - ~DASSL (void) { } + ~DASSL (void) = default; ColumnVector do_integrate (double t);
--- a/liboctave/numeric/EIG.h Tue Dec 06 10:44:20 2016 -0500 +++ b/liboctave/numeric/EIG.h Tue Dec 06 10:59:29 2016 -0500 @@ -112,7 +112,7 @@ return *this; } - ~EIG (void) { } + ~EIG (void) = default; ComplexColumnVector eigenvalues (void) const { return lambda; } ComplexMatrix right_eigenvectors (void) const { return v; }
--- a/liboctave/numeric/LSODE.h Tue Dec 06 10:44:20 2016 -0500 +++ b/liboctave/numeric/LSODE.h Tue Dec 06 10:59:29 2016 -0500 @@ -45,7 +45,7 @@ maxord (0), itask (0), iopt (0), itol (0), liw (0), lrw (0), iwork (), rwork (), rel_tol (0.0), abs_tol () { } - ~LSODE (void) { } + ~LSODE (void) = default; ColumnVector do_integrate (double t);
--- a/liboctave/numeric/ODE.h Tue Dec 06 10:44:20 2016 -0500 +++ b/liboctave/numeric/ODE.h Tue Dec 06 10:59:29 2016 -0500 @@ -52,7 +52,7 @@ return *this; } - virtual ~ODE (void) { } + virtual ~ODE (void) = default; // Derived classes must provide functions to actually do the // integration.
--- a/liboctave/numeric/ODEFunc.h Tue Dec 06 10:44:20 2016 -0500 +++ b/liboctave/numeric/ODEFunc.h Tue Dec 06 10:59:29 2016 -0500 @@ -59,7 +59,7 @@ return *this; } - virtual ~ODEFunc (void) { } + virtual ~ODEFunc (void) = default; ODERHSFunc function (void) const { return fun; }
--- a/liboctave/numeric/ODES.h Tue Dec 06 10:44:20 2016 -0500 +++ b/liboctave/numeric/ODES.h Tue Dec 06 10:59:29 2016 -0500 @@ -60,7 +60,7 @@ return *this; } - ~ODES (void) { } + ~ODES (void) = default; ColumnVector parameter_vector (void) { return theta; }
--- a/liboctave/numeric/ODESFunc.h Tue Dec 06 10:44:20 2016 -0500 +++ b/liboctave/numeric/ODESFunc.h Tue Dec 06 10:59:29 2016 -0500 @@ -73,7 +73,7 @@ return *this; } - virtual ~ODESFunc (void) { } + virtual ~ODESFunc (void) = default; ODES_fsub fsub_function (void) const { return fsub; }
--- a/liboctave/numeric/Quad.h Tue Dec 06 10:44:20 2016 -0500 +++ b/liboctave/numeric/Quad.h Tue Dec 06 10:59:29 2016 -0500 @@ -52,7 +52,7 @@ Quad (float_integrand_fcn fcn) : Quad_options (), f (), ff (fcn) { } - virtual ~Quad (void) { } + virtual ~Quad (void) = default; virtual double integrate (void) { @@ -139,7 +139,7 @@ : Quad (fcn), lower_limit (0.0), upper_limit (1.0), singularities (sing) { } - ~DefQuad (void) { } + ~DefQuad (void) = default; double do_integrate (octave_idx_type& ier, octave_idx_type& neval, double& abserr); @@ -169,7 +169,7 @@ IndefQuad (integrand_fcn fcn, double b, IntegralType t) : Quad (fcn), bound (b), type (t) { } - ~IndefQuad (void) { } + ~IndefQuad (void) = default; double do_integrate (octave_idx_type& ier, octave_idx_type& neval, double& abserr); @@ -204,7 +204,7 @@ : Quad (fcn), lower_limit (0.0), upper_limit (1.0), singularities (sing) { } - ~FloatDefQuad (void) { } + ~FloatDefQuad (void) = default; OCTAVE_NORETURN double do_integrate (octave_idx_type& ier, octave_idx_type& neval, double& abserr); @@ -234,7 +234,7 @@ FloatIndefQuad (float_integrand_fcn fcn, double b, IntegralType t) : Quad (fcn), bound (b), type (t) { } - ~FloatIndefQuad (void) { } + ~FloatIndefQuad (void) = default; OCTAVE_NORETURN double do_integrate (octave_idx_type& ier, octave_idx_type& neval, double& abserr);
--- a/liboctave/numeric/aepbalance.h Tue Dec 06 10:44:20 2016 -0500 +++ b/liboctave/numeric/aepbalance.h Tue Dec 06 10:59:29 2016 -0500 @@ -60,7 +60,7 @@ return *this; } - virtual ~aepbalance (void) { } + virtual ~aepbalance (void) = default; MT balancing_matrix (void) const;
--- a/liboctave/numeric/base-dae.h Tue Dec 06 10:44:20 2016 -0500 +++ b/liboctave/numeric/base-dae.h Tue Dec 06 10:59:29 2016 -0500 @@ -45,7 +45,7 @@ base_diff_alg_eqn (const base_diff_alg_eqn& a) : base_diff_eqn (a), xdot (a.xdot) { } - virtual ~base_diff_alg_eqn (void) { } + virtual ~base_diff_alg_eqn (void) = default; base_diff_alg_eqn& operator = (const base_diff_alg_eqn& a) {
--- a/liboctave/numeric/base-de.h Tue Dec 06 10:44:20 2016 -0500 +++ b/liboctave/numeric/base-de.h Tue Dec 06 10:59:29 2016 -0500 @@ -47,7 +47,7 @@ : x (a.x), t (a.t), stop_time (0.0), stop_time_set (false), restart (true), integration_error (false), istate (0) { } - virtual ~base_diff_eqn (void) { } + virtual ~base_diff_eqn (void) = default; base_diff_eqn& operator = (const base_diff_eqn& a) {
--- a/liboctave/numeric/base-min.h Tue Dec 06 10:44:20 2016 -0500 +++ b/liboctave/numeric/base-min.h Tue Dec 06 10:59:29 2016 -0500 @@ -38,7 +38,7 @@ base_minimizer (const base_minimizer& a) : x (a.x) { } - virtual ~base_minimizer (void) { } + virtual ~base_minimizer (void) = default; base_minimizer& operator = (const base_minimizer& a) {
--- a/liboctave/numeric/fEIG.h Tue Dec 06 10:44:20 2016 -0500 +++ b/liboctave/numeric/fEIG.h Tue Dec 06 10:59:29 2016 -0500 @@ -112,7 +112,7 @@ return *this; } - ~FloatEIG (void) { } + ~FloatEIG (void) = default; FloatComplexColumnVector eigenvalues (void) const { return lambda; } FloatComplexMatrix right_eigenvectors (void) const { return v; }
--- a/liboctave/numeric/gepbalance.h Tue Dec 06 10:44:20 2016 -0500 +++ b/liboctave/numeric/gepbalance.h Tue Dec 06 10:59:29 2016 -0500 @@ -67,7 +67,7 @@ return *this; } - ~gepbalance (void) { } + ~gepbalance (void) = default; T balanced_matrix (void) const { return balanced_mat; }
--- a/liboctave/numeric/gsvd.h Tue Dec 06 10:44:20 2016 -0500 +++ b/liboctave/numeric/gsvd.h Tue Dec 06 10:59:29 2016 -0500 @@ -72,7 +72,7 @@ return *this; } - ~gsvd (void) { } + ~gsvd (void) = default; typename T::real_diag_matrix_type singular_values_A (void) const { return sigmaA; }
--- a/liboctave/numeric/hess.h Tue Dec 06 10:44:20 2016 -0500 +++ b/liboctave/numeric/hess.h Tue Dec 06 10:59:29 2016 -0500 @@ -68,7 +68,7 @@ return *this; } - ~hess (void) { } + ~hess (void) = default; T hess_matrix (void) const { return hess_mat; }
--- a/liboctave/numeric/lu.h Tue Dec 06 10:44:20 2016 -0500 +++ b/liboctave/numeric/lu.h Tue Dec 06 10:59:29 2016 -0500 @@ -63,7 +63,7 @@ return *this; } - virtual ~lu (void) { } + virtual ~lu (void) = default; bool packed (void) const;
--- a/liboctave/numeric/oct-rand.h Tue Dec 06 10:44:20 2016 -0500 +++ b/liboctave/numeric/oct-rand.h Tue Dec 06 10:59:29 2016 -0500 @@ -43,7 +43,7 @@ public: - ~octave_rand (void) { } + ~octave_rand (void) = default; static bool instance_ok (void);
--- a/liboctave/numeric/oct-spparms.h Tue Dec 06 10:44:20 2016 -0500 +++ b/liboctave/numeric/oct-spparms.h Tue Dec 06 10:59:29 2016 -0500 @@ -67,7 +67,7 @@ return *this; } - ~octave_sparse_params (void) { } + ~octave_sparse_params (void) = default; static bool instance_ok (void);
--- a/liboctave/numeric/qr.h Tue Dec 06 10:44:20 2016 -0500 +++ b/liboctave/numeric/qr.h Tue Dec 06 10:59:29 2016 -0500 @@ -73,7 +73,7 @@ return *this; } - virtual ~qr (void) { } + virtual ~qr (void) = default; T Q (void) const { return q; }
--- a/liboctave/numeric/qrp.h Tue Dec 06 10:44:20 2016 -0500 +++ b/liboctave/numeric/qrp.h Tue Dec 06 10:59:29 2016 -0500 @@ -60,7 +60,7 @@ return *this; } - ~qrp (void) { } + ~qrp (void) = default; void init (const T&, type = qr<T>::std);
--- a/liboctave/numeric/schur.h Tue Dec 06 10:44:20 2016 -0500 +++ b/liboctave/numeric/schur.h Tue Dec 06 10:59:29 2016 -0500 @@ -80,7 +80,7 @@ return *this; } - ~schur (void) { } + ~schur (void) = default; T schur_matrix (void) const { return schur_mat; }
--- a/liboctave/numeric/sparse-lu.h Tue Dec 06 10:44:20 2016 -0500 +++ b/liboctave/numeric/sparse-lu.h Tue Dec 06 10:59:29 2016 -0500 @@ -77,7 +77,7 @@ return *this; } - virtual ~sparse_lu (void) { } + virtual ~sparse_lu (void) = default; lu_type L (void) const { return Lfact; }
--- a/liboctave/numeric/svd.h Tue Dec 06 10:44:20 2016 -0500 +++ b/liboctave/numeric/svd.h Tue Dec 06 10:59:29 2016 -0500 @@ -79,7 +79,7 @@ return *this; } - ~svd (void) { } + ~svd (void) = default; T left_singular_matrix (void) const;
--- a/liboctave/system/child-list.h Tue Dec 06 10:44:20 2016 -0500 +++ b/liboctave/system/child-list.h Tue Dec 06 10:59:29 2016 -0500 @@ -66,7 +66,7 @@ return *this; } - ~child (void) { } + ~child (void) = default; // The process id of this child. pid_t pid; @@ -103,7 +103,7 @@ public: - ~child_list (void) { } + ~child_list (void) = default; static void insert (pid_t pid, child::child_event_handler f);
--- a/liboctave/system/file-stat.h Tue Dec 06 10:44:20 2016 -0500 +++ b/liboctave/system/file-stat.h Tue Dec 06 10:59:29 2016 -0500 @@ -154,7 +154,7 @@ protected: - virtual ~base_file_stat (void) { } + virtual ~base_file_stat (void) = default; // TRUE means we have already called stat. bool initialized; @@ -235,7 +235,7 @@ return *this; } - ~file_stat (void) { } + ~file_stat (void) = default; void get_stats (bool force = false) { @@ -293,7 +293,7 @@ return *this; } - ~file_fstat (void) { } + ~file_fstat (void) = default; void get_stats (bool force = false) {
--- a/liboctave/system/oct-passwd.h Tue Dec 06 10:44:20 2016 -0500 +++ b/liboctave/system/oct-passwd.h Tue Dec 06 10:59:29 2016 -0500 @@ -67,7 +67,7 @@ return *this; } - ~password (void) { } + ~password (void) = default; std::string name (void) const;
--- a/liboctave/system/oct-time.h Tue Dec 06 10:44:20 2016 -0500 +++ b/liboctave/system/oct-time.h Tue Dec 06 10:59:29 2016 -0500 @@ -96,7 +96,7 @@ return *this; } - ~time (void) { } + ~time (void) = default; void stamp (void); @@ -217,7 +217,7 @@ return *this; } - virtual ~base_tm (void) { } + virtual ~base_tm (void) = default; int usec (void) const { return m_usec; } int sec (void) const { return m_sec; } @@ -312,7 +312,7 @@ return *this; } - ~localtime (void) { } + ~localtime (void) = default; private: @@ -337,7 +337,7 @@ return *this; } - ~gmtime (void) { } + ~gmtime (void) = default; private: @@ -368,7 +368,7 @@ int characters_converted (void) const { return nchars; } - ~strptime (void) { } + ~strptime (void) = default; private:
--- a/liboctave/system/oct-uname.h Tue Dec 06 10:44:20 2016 -0500 +++ b/liboctave/system/oct-uname.h Tue Dec 06 10:59:29 2016 -0500 @@ -67,7 +67,7 @@ return *this; } - ~uname (void) { } + ~uname (void) = default; std::string sysname (void) const { return m_sysname; } std::string nodename (void) const { return m_nodename; }
--- a/liboctave/util/action-container.h Tue Dec 06 10:44:20 2016 -0500 +++ b/liboctave/util/action-container.h Tue Dec 06 10:59:29 2016 -0500 @@ -46,7 +46,7 @@ virtual void run (void) { } - virtual ~elem (void) { } + virtual ~elem (void) = default; friend class action_container; @@ -232,7 +232,7 @@ action_container (void) { } - virtual ~action_container (void) { } + virtual ~action_container (void) = default; virtual void add (elem *new_elem) = 0;
--- a/liboctave/util/base-list.h Tue Dec 06 10:44:20 2016 -0500 +++ b/liboctave/util/base-list.h Tue Dec 06 10:59:29 2016 -0500 @@ -124,7 +124,7 @@ return *this; } - virtual ~base_list (void) { } + virtual ~base_list (void) = default; private:
--- a/liboctave/util/cmd-edit.cc Tue Dec 06 10:44:20 2016 -0500 +++ b/liboctave/util/cmd-edit.cc Tue Dec 06 10:59:29 2016 -0500 @@ -80,7 +80,7 @@ gnu_readline (void); - ~gnu_readline (void) { } + ~gnu_readline (void) = default; void do_set_name (const std::string& n); @@ -923,7 +923,7 @@ default_command_editor (void) : command_editor (), input_stream (stdin), output_stream (stdout) { } - ~default_command_editor (void) { } + ~default_command_editor (void) = default; std::string do_readline (const std::string& prompt, bool& eof);
--- a/liboctave/util/cmd-edit.h Tue Dec 06 10:44:20 2016 -0500 +++ b/liboctave/util/cmd-edit.h Tue Dec 06 10:59:29 2016 -0500 @@ -63,7 +63,7 @@ typedef void (*user_accept_line_fcn) (const std::string&); - virtual ~command_editor (void) { } + virtual ~command_editor (void) = default; static void set_name (const std::string& n);
--- a/liboctave/util/cmd-hist.cc Tue Dec 06 10:44:20 2016 -0500 +++ b/liboctave/util/cmd-hist.cc Tue Dec 06 10:59:29 2016 -0500 @@ -60,7 +60,7 @@ gnu_history (void) : command_history (), mark (0) { } - ~gnu_history (void) { } + ~gnu_history (void) = default; void do_process_histcontrol (const std::string&);
--- a/liboctave/util/cmd-hist.h Tue Dec 06 10:44:20 2016 -0500 +++ b/liboctave/util/cmd-hist.h Tue Dec 06 10:59:29 2016 -0500 @@ -43,7 +43,7 @@ public: - virtual ~command_history (void) { } + virtual ~command_history (void) = default; static void initialize (bool, const std::string&, int, const std::string&);
--- a/liboctave/util/glob-match.h Tue Dec 06 10:44:20 2016 -0500 +++ b/liboctave/util/glob-match.h Tue Dec 06 10:59:29 2016 -0500 @@ -64,7 +64,7 @@ return *this; } - ~glob_match (void) { } + ~glob_match (void) = default; void set_pattern (const std::string& p) { pat = p; }
--- a/liboctave/util/lo-array-errwarn.h Tue Dec 06 10:44:20 2016 -0500 +++ b/liboctave/util/lo-array-errwarn.h Tue Dec 06 10:59:29 2016 -0500 @@ -47,7 +47,7 @@ : index (index_arg), nd (nd_arg), dim (dim_arg), var (var_arg) { } - ~index_exception (void) { } + ~index_exception (void) = default; // Erroneous index value. Called in what, and by external code // (e.g., nth_element) to make a custom error message.
--- a/liboctave/util/lo-regexp.h Tue Dec 06 10:44:20 2016 -0500 +++ b/liboctave/util/lo-regexp.h Tue Dec 06 10:59:29 2016 -0500 @@ -167,7 +167,7 @@ return *this; } - ~opts (void) { } + ~opts (void) = default; void case_insensitive (bool val) { x_case_insensitive = val; } void dotexceptnewline (bool val) { x_dotexceptnewline = val; } @@ -256,7 +256,7 @@ return *this; } - ~match_data (void) { } + ~match_data (void) = default; string_vector named_patterns (void) { return named_pats; }
--- a/liboctave/util/oct-mutex.h Tue Dec 06 10:44:20 2016 -0500 +++ b/liboctave/util/oct-mutex.h Tue Dec 06 10:59:29 2016 -0500 @@ -37,7 +37,7 @@ octave_base_mutex (void) : count (1) { } - virtual ~octave_base_mutex (void) { } + virtual ~octave_base_mutex (void) = default; virtual void lock (void);
--- a/liboctave/util/pathsearch.h Tue Dec 06 10:44:20 2016 -0500 +++ b/liboctave/util/pathsearch.h Tue Dec 06 10:59:29 2016 -0500 @@ -66,7 +66,7 @@ return *this; } - ~directory_path (void) { } + ~directory_path (void) = default; void set (const std::string& s) {
--- a/liboctave/util/str-vec.h Tue Dec 06 10:44:20 2016 -0500 +++ b/liboctave/util/str-vec.h Tue Dec 06 10:59:29 2016 -0500 @@ -74,7 +74,7 @@ return *this; } - ~string_vector (void) { } + ~string_vector (void) = default; bool empty (void) const { return numel () == 0; }
--- a/liboctave/util/url-transfer.h Tue Dec 06 10:44:20 2016 -0500 +++ b/liboctave/util/url-transfer.h Tue Dec 06 10:59:29 2016 -0500 @@ -70,7 +70,7 @@ ascii_mode (false), ok (true), errmsg (), curr_istream (&std::cin), curr_ostream (&os) { } - virtual ~base_url_transfer (void) { } + virtual ~base_url_transfer (void) = default; bool is_valid (void) const { return valid; }