diff libinterp/octave-value/ov-oncleanup.cc @ 30077:b16e0d357437

maint: use "m_" prefix for member variables in some octave-value classes. * ov-cs-list.h, ov-cs-list.cc, ov-dld-fcn.h, ov-dld-fcn.cc, ov-lazy-idx.h, ov-lazy-idx.cc, ov-oncleanup.h, ov-oncleanup.cc, ov-perm.h, ov-perm.cc, ov-struct.h, ov-struct.cc, ov-typeinfo.h, ov-typeinfo.cc: Use "m_" prefix for class member variables.
author John W. Eaton <jwe@octave.org>
date Mon, 30 Aug 2021 14:02:47 -0400
parents 32c3a5805893
children 796f54d4ddbf
line wrap: on
line diff
--- a/libinterp/octave-value/ov-oncleanup.cc	Mon Aug 30 10:52:39 2021 -0700
+++ b/libinterp/octave-value/ov-oncleanup.cc	Mon Aug 30 14:02:47 2021 -0400
@@ -40,7 +40,7 @@
                                      "onCleanup");
 
 octave_oncleanup::octave_oncleanup (const octave_value& f)
-  : fcn (f)
+  : m_fcn (f)
 {
   if (f.is_function_handle ())
     {
@@ -61,7 +61,7 @@
     }
   else
     {
-      fcn = octave_value ();
+      m_fcn = octave_value ();
       error ("onCleanup: argument must be a function handle");
     }
 }
@@ -75,7 +75,7 @@
 octave_oncleanup::scalar_map_value (void) const
 {
   octave_scalar_map retval;
-  retval.setfield ("task", fcn);
+  retval.setfield ("task", m_fcn);
   return retval;
 }
 
@@ -140,19 +140,19 @@
 octave_oncleanup::print_raw (std::ostream& os, bool pr_as_read_syntax) const
 {
   os << "onCleanup (";
-  if (fcn.is_defined ())
-    fcn.print_raw (os, pr_as_read_syntax);
+  if (m_fcn.is_defined ())
+    m_fcn.print_raw (os, pr_as_read_syntax);
   os << ')';
 }
 
 void
 octave_oncleanup::call_object_destructor (void)
 {
-  if (fcn.is_undefined ())
+  if (m_fcn.is_undefined ())
     return;
 
-  octave_value the_fcn = fcn;
-  fcn = octave_value ();
+  octave_value the_fcn = m_fcn;
+  m_fcn = octave_value ();
 
   octave::unwind_protect frame;