Mercurial > jwe > octave
changeset 30088:f2f386d431ff
maint: use "m_" prefix for member variables in class strptime.
* oct-time.cc, oct-time.h: Use "m_" prefix for member variables in class
strptime.
author | Rik <rik@octave.org> |
---|---|
date | Mon, 30 Aug 2021 13:25:04 -0700 |
parents | 1788b9f6db6a |
children | 77edffa7fb40 |
files | liboctave/system/oct-time.cc liboctave/system/oct-time.h |
diffstat | 2 files changed, 7 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/liboctave/system/oct-time.cc Mon Aug 30 13:22:31 2021 -0700 +++ b/liboctave/system/oct-time.cc Mon Aug 30 13:25:04 2021 -0700 @@ -332,9 +332,9 @@ t.tm_year = 0; if (q) - nchars = q - p + 1; + m_nchars = q - p + 1; else - nchars = 0; + m_nchars = 0; base_tm::init (&t);
--- a/liboctave/system/oct-time.h Mon Aug 30 13:22:31 2021 -0700 +++ b/liboctave/system/oct-time.h Mon Aug 30 13:25:04 2021 -0700 @@ -353,28 +353,28 @@ public: strptime (const std::string& str, const std::string& fmt) - : base_tm (), nchars (0) + : base_tm (), m_nchars (0) { init (str, fmt); } strptime (const strptime& s) - : base_tm (s), nchars (s.nchars) { } + : base_tm (s), m_nchars (s.m_nchars) { } strptime& operator = (const strptime& s) { base_tm::operator = (s); - nchars = s.nchars; + m_nchars = s.m_nchars; return *this; } - int characters_converted (void) const { return nchars; } + int characters_converted (void) const { return m_nchars; } ~strptime (void) = default; private: - int nchars; + int m_nchars; OCTAVE_API void init (const std::string& str, const std::string& fmt); };