Mercurial > octave-libtiff
changeset 30159:fb174e59db0a
maint: use "m_" prefix for member variables in class __rangeidx_helper.
Range.cc: Use "m_" prefix for member variables in class __rangeidx_helper.
author | Rik <rik@octave.org> |
---|---|
date | Sun, 12 Sep 2021 20:29:53 -0700 |
parents | e1d9d8ef2b29 |
children | 9c4e8c3bf41d |
files | liboctave/array/Range.cc |
diffstat | 1 files changed, 7 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/liboctave/array/Range.cc Sun Sep 12 14:45:11 2021 +0200 +++ b/liboctave/array/Range.cc Sun Sep 12 20:29:53 2021 -0700 @@ -459,22 +459,22 @@ { public: __rangeidx_helper (double *a, double b, double i, double l, octave_idx_type n) - : array (a), base (b), inc (i), limit (l), nmax (n-1) { } + : m_array (a), m_base (b), m_inc (i), m_limit (l), m_nmax (n-1) { } void operator () (octave_idx_type i) { if (i == 0) - *array++ = base; - else if (i < nmax) - *array++ = base + i * inc; + *m_array++ = m_base; + else if (i < m_nmax) + *m_array++ = m_base + i * m_inc; else - *array++ = limit; + *m_array++ = m_limit; } private: - double *array, base, inc, limit; - octave_idx_type nmax; + double *m_array, m_base, m_inc, m_limit; + octave_idx_type m_nmax; };