changeset 25081:d3baac355a2c stable

GLCanvas.cc: Catch exception by reference to silence -Wcatch-value warning (bug #53545). * GLCanvas.cc (do_print): Change catch block to catch reference to octave::execution_exception.
author Rik <rik@octave.org>
date Sun, 01 Apr 2018 22:16:24 -0700
parents 699fe9cd51ca
children 3166d47adde2
files libgui/graphics/GLCanvas.cc
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libgui/graphics/GLCanvas.cc	Sun Apr 01 22:06:24 2018 -0700
+++ b/libgui/graphics/GLCanvas.cc	Sun Apr 01 22:16:24 2018 -0700
@@ -138,7 +138,7 @@
             octave::gl2ps_print (figObj, file_cmd.toStdString (),
                                  term.toStdString ());
           }
-        catch (octave::execution_exception e)
+        catch (octave::execution_exception& e)
           {
             octave_link::post_exception (std::current_exception ());
             end_rendering ();