Mercurial > octave
diff libinterp/octave-value/ov-classdef.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 | 53c10d69a9be |
children | dfd2b1a268a0 |
line wrap: on
line diff
--- a/libinterp/octave-value/ov-classdef.cc Sun Feb 19 20:11:39 2023 -0800 +++ b/libinterp/octave-value/ov-classdef.cc Mon Feb 20 18:06:54 2023 -0800 @@ -57,14 +57,14 @@ return (ctx.ok () && octave::is_superclass (ctx, cls)); } -int octave_classdef::t_id (-1); +int octave_classdef::s_t_id (-1); -const std::string octave_classdef::t_name ("object"); +const std::string octave_classdef::s_t_name ("object"); void octave_classdef::register_type (octave::type_info& ti) { - t_id = ti.register_type (octave_classdef::t_name, "<unknown>", + s_t_id = ti.register_type (octave_classdef::s_t_name, "<unknown>", octave_value (new octave_classdef ())); }