Mercurial > octave
changeset 26918:0a13d8d19790
avoid some overloaded virtual warnings (bug #55741)
* graphics.in.h (base_graphics_object::get (bool)): Don't declare
virtual since no derived class needs to override it.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Fri, 15 Mar 2019 06:36:56 +0000 |
parents | 9dd1d8973877 |
children | c33ac5ca0a7a |
files | libinterp/corefcn/graphics.in.h |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/corefcn/graphics.in.h Fri Mar 15 05:52:35 2019 +0000 +++ b/libinterp/corefcn/graphics.in.h Fri Mar 15 06:36:56 2019 +0000 @@ -2468,7 +2468,10 @@ error ("base_graphics_object::set_defaults: invalid graphics object"); } - virtual octave_value get (bool all = false) const + // The following version of the get method is not declared virtual + // because no derived class overrides it. + + octave_value get (bool all = false) const { if (! valid_object ()) error ("base_graphics_object::get: invalid graphics object");