diff src/ov-struct.cc @ 10066:2cd940306a06

make unwind_protect frames local
author Jaroslav Hajek <highegg@gmail.com>
date Wed, 06 Jan 2010 13:18:41 +0100
parents 83bb2a78c07d
children 9d1a14e12431
line wrap: on
line diff
--- a/src/ov-struct.cc	Tue Jan 05 13:16:16 2010 +0100
+++ b/src/ov-struct.cc	Wed Jan 06 13:18:41 2010 +0100
@@ -580,9 +580,9 @@
 void
 octave_struct::print_raw (std::ostream& os, bool) const
 {
-  unwind_protect::frame_id_t uwp_frame = unwind_protect::begin_frame ();
+  unwind_protect frame;
 
-  unwind_protect::protect_var (Vstruct_levels_to_print);
+  frame.protect_var (Vstruct_levels_to_print);
 
   if (Vstruct_levels_to_print >= 0)
     {
@@ -647,8 +647,6 @@
       os << "<structure>";
       newline (os);
     }
-
-  unwind_protect::run_frame (uwp_frame);
 }
 
 bool