changeset 30066:11dc1156b9d0

maint: use "m_" prefix for member variable "valid" in class group. * oct-group.cc, oct-group.h: use "m_" prefix for member variable "valid" in class group.
author Rik <rik@octave.org>
date Sun, 29 Aug 2021 20:11:05 -0700
parents 05d0f3142b8d
children fc509c3c445a
files liboctave/system/oct-group.cc liboctave/system/oct-group.h
diffstat 2 files changed, 7 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/liboctave/system/oct-group.cc	Sun Aug 29 20:10:35 2021 -0700
+++ b/liboctave/system/oct-group.cc	Sun Aug 29 20:11:05 2021 -0700
@@ -189,7 +189,7 @@
     }
 
     group::group (void *p, std::string& msg)
-      : m_name (), m_passwd (), m_gid (0), m_mem (), valid (false)
+      : m_name (), m_passwd (), m_gid (0), m_mem (), m_valid (false)
     {
 #if defined (HAVE_GRP_H)
       msg = "";
@@ -225,7 +225,7 @@
                 m_mem[i] = tmp[i];
             }
 
-          valid = true;
+          m_valid = true;
         }
 #else
       octave_unused_parameter (p);
--- a/liboctave/system/oct-group.h	Sun Aug 29 20:10:35 2021 -0700
+++ b/liboctave/system/oct-group.h	Sun Aug 29 20:11:05 2021 -0700
@@ -45,12 +45,12 @@
     public:
 
       group (void)
-        : m_name (), m_passwd (), m_gid (0), m_mem (), valid (false)
+        : m_name (), m_passwd (), m_gid (0), m_mem (), m_valid (false)
       { }
 
       group (const group& gr)
         : m_name (gr.m_name), m_passwd (gr.m_passwd),
-          m_gid (gr.m_gid), m_mem (gr.m_mem), valid (gr.valid)
+          m_gid (gr.m_gid), m_mem (gr.m_mem), m_valid (gr.m_valid)
       { }
 
       group& operator = (const group& gr)
@@ -61,7 +61,7 @@
             m_passwd = gr.m_passwd;
             m_gid = gr.m_gid;
             m_mem = gr.m_mem;
-            valid = gr.valid;
+            m_valid = gr.m_valid;
           }
 
         return *this;
@@ -75,7 +75,7 @@
 
       string_vector mem (void) const;
 
-      bool ok (void) const { return valid; }
+      bool ok (void) const { return m_valid; }
 
       operator bool () const { return ok (); }
 
@@ -109,7 +109,7 @@
       string_vector m_mem;
 
       // Flag that says whether we have been properly initialized.
-      bool valid;
+      bool m_valid;
 
       // This is how we will create an group object from a pointer
       // to a struct group.