Mercurial > octave
diff libinterp/corefcn/gl-render.h @ 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 | f034b29320ad |
children | ab5bfee22d18 |
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 ();