changeset 30165:5933cf5415c4

maint: use "m_" prefix for member variables in class _idxbinop_helper. * MArray.cc: Use "m_" prefix for member variables in class _idxbinop_helper.
author Rik <rik@octave.org>
date Mon, 13 Sep 2021 16:35:21 -0700
parents aedebbc6b765
children bb7ac72c394e
files liboctave/array/MArray.cc
diffstat 1 files changed, 5 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/liboctave/array/MArray.cc	Sun Sep 12 21:04:44 2021 -0700
+++ b/liboctave/array/MArray.cc	Mon Sep 13 16:35:21 2021 -0700
@@ -100,15 +100,14 @@
 struct _idxbinop_helper
 {
 public:
-  _idxbinop_helper (T *a, const T *v) : array (a), vals (v) { }
+  _idxbinop_helper (T *a, const T *v) : m_array (a), m_vals (v) { }
 
   void operator () (octave_idx_type i)
-  { array[i] = op (array[i], *vals++); }
+  { m_array[i] = op (m_array[i], *m_vals++); }
 
-  //--------
-
-  T *array;
-  const T *vals;
+private:
+  T *m_array;
+  const T *m_vals;
 };
 
 template <typename T>