diff libgui/src/m-editor/file-editor-tab.cc @ 27474:3fec8e9fa2aa

make recover_from_exception a member function * interpreter.h, interpreter.cc (interpreter::recover_from_exception): Now a member function. Change all uses.
author John W. Eaton <jwe@octave.org>
date Fri, 04 Oct 2019 16:40:30 -0400
parents fd32c1a9b1bd
children 410622ac120f
line wrap: on
line diff
--- a/libgui/src/m-editor/file-editor-tab.cc	Fri Oct 04 13:51:47 2019 -0700
+++ b/libgui/src/m-editor/file-editor-tab.cc	Fri Oct 04 16:40:30 2019 -0400
@@ -451,14 +451,14 @@
                }
              catch (const execution_exception& e)
                {
-                 interpreter::recover_from_exception ();
+                 interp.recover_from_exception ();
 
                  msg = e.message ();
                  eval_error = true;
                }
              catch (const interrupt_exception&)
                {
-                 interpreter::recover_from_exception ();
+                 interp.recover_from_exception ();
 
                  msg = "evaluation interrupted";
                  eval_error = true;
@@ -2300,7 +2300,7 @@
                    }
                  catch (const execution_exception& e)
                    {
-                     interpreter::recover_from_exception ();
+                     interp.recover_from_exception ();
 
                      // Ignore syntax error.  It was in the old file on disk;
                      // the user may have fixed it already.