diff libinterp/corefcn/interpreter.cc @ 31845:2da025d5e98d

maint: Use 's_' prefix for static private class variables. Use 's_' as prefix for static class variables. Where the static variable is really a constant, use ALL_CAPITALS for name. * main-window.cc, main-window.h, ft-text-renderer.cc, interpreter.cc, interpreter.h, __init_fltk__.cc, ov-base.cc, ov-base.h, ov-class.cc, ov-class.h, ov-classdef.cc, ov-classdef.h, ov-java.cc, ov-java.h, oct-rand.cc, oct-rand.h, oct-env.cc, oct-env.h, cmd-edit.cc, cmd-edit.h, oct-inttypes.h: Use 's_' prefix for static private class variables.
author Rik <rik@octave.org>
date Mon, 20 Feb 2023 18:06:54 -0800
parents febd82d1a8de
children 5f0b8101234e
line wrap: on
line diff
--- a/libinterp/corefcn/interpreter.cc	Sun Feb 19 20:11:39 2023 -0800
+++ b/libinterp/corefcn/interpreter.cc	Mon Feb 20 18:06:54 2023 -0800
@@ -463,11 +463,11 @@
   //
   //   only one Octave interpreter may be active in any given thread
 
-  if (m_instance)
+  if (s_instance)
     throw std::runtime_error
     ("only one Octave interpreter may be active");
 
-  m_instance = this;
+  s_instance = this;
 
 #if defined (OCTAVE_HAVE_WINDOWS_UTF8_LOCALE)
   // Force a UTF-8 locale on Windows if possible
@@ -623,7 +623,7 @@
   octave_interpreter_ready = true;
 }
 
-OCTAVE_THREAD_LOCAL interpreter *interpreter::m_instance = nullptr;
+OCTAVE_THREAD_LOCAL interpreter *interpreter::s_instance = nullptr;
 
 interpreter::~interpreter ()
 {