Mercurial > octave
diff liboctave/util/oct-refcount.h @ 27177:8498dccc15c7
minor style fixes
* action-container.h, functor.h, oct-binmap.h, oct-refcount.h,
sparse-sort.cc, sparse-sort.h, str-vec.h, unwind-prot.h:
Use m_ prefix for class data members and s_ prefix for static data
members. Minor style fixes.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 12 Jun 2019 11:03:06 -0500 |
parents | fff643eb3514 |
children | 396996f1dad0 |
line wrap: on
line diff
--- a/liboctave/util/oct-refcount.h Wed Jun 12 10:51:58 2019 -0500 +++ b/liboctave/util/oct-refcount.h Wed Jun 12 11:03:06 2019 -0500 @@ -77,33 +77,33 @@ typedef T count_type; refcount (count_type initial_count) - : count (initial_count) + : m_count (initial_count) { } // Increment/Decrement. int is postfix. count_type operator++ (void) { - return OCTAVE_ATOMIC_INCREMENT (&count); + return OCTAVE_ATOMIC_INCREMENT (&m_count); } count_type operator++ (int) { - return OCTAVE_ATOMIC_POST_INCREMENT (&count); + return OCTAVE_ATOMIC_POST_INCREMENT (&m_count); } count_type operator-- (void) { - return OCTAVE_ATOMIC_DECREMENT (&count); + return OCTAVE_ATOMIC_DECREMENT (&m_count); } count_type operator-- (int) { - return OCTAVE_ATOMIC_POST_DECREMENT (&count); + return OCTAVE_ATOMIC_POST_DECREMENT (&m_count); } count_type value (void) const { - return static_cast<count_type const volatile&> (count); + return static_cast<count_type const volatile&> (m_count); } operator count_type (void) const @@ -113,12 +113,12 @@ count_type * get (void) { - return &count; + return &m_count; } private: - count_type count; + count_type m_count; }; }