Mercurial > octave
changeset 26921:9c8ebafba517
avoid some overloaded virtual warnings (bug #55741)
* gl-render.h (opengl_renderer::draw (const Matrix&, 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:56:26 +0000 |
parents | e0111653adcf |
children | 072d0610cc56 |
files | libinterp/corefcn/gl-render.h |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/corefcn/gl-render.h Fri Mar 15 06:49:01 2019 +0000 +++ b/libinterp/corefcn/gl-render.h Fri Mar 15 06:56:26 2019 +0000 @@ -52,7 +52,10 @@ virtual void draw (const graphics_object& go, bool toplevel = true); - virtual void draw (const Matrix& hlist, bool toplevel = false) + // The following version of the draw method is not declared virtual + // because no derived class overrides it. + + void draw (const Matrix& hlist, bool toplevel = false) { int len = hlist.numel ();