Mercurial > octave
comparison 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 |
comparison
equal
deleted
inserted
replaced
31844:e27744dfb13a | 31845:2da025d5e98d |
---|---|
55 octave::cdef_class ctx = octave::get_class_context (); | 55 octave::cdef_class ctx = octave::get_class_context (); |
56 | 56 |
57 return (ctx.ok () && octave::is_superclass (ctx, cls)); | 57 return (ctx.ok () && octave::is_superclass (ctx, cls)); |
58 } | 58 } |
59 | 59 |
60 int octave_classdef::t_id (-1); | 60 int octave_classdef::s_t_id (-1); |
61 | 61 |
62 const std::string octave_classdef::t_name ("object"); | 62 const std::string octave_classdef::s_t_name ("object"); |
63 | 63 |
64 void | 64 void |
65 octave_classdef::register_type (octave::type_info& ti) | 65 octave_classdef::register_type (octave::type_info& ti) |
66 { | 66 { |
67 t_id = ti.register_type (octave_classdef::t_name, "<unknown>", | 67 s_t_id = ti.register_type (octave_classdef::s_t_name, "<unknown>", |
68 octave_value (new octave_classdef ())); | 68 octave_value (new octave_classdef ())); |
69 } | 69 } |
70 | 70 |
71 octave_value_list | 71 octave_value_list |
72 octave_classdef::subsref (const std::string& type, | 72 octave_classdef::subsref (const std::string& type, |