lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [lmi] master 14bea80 6/7: Prefer '_' suffix to 'm_' prefix


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 14bea80 6/7: Prefer '_' suffix to 'm_' prefix for data members
Date: Sat, 24 Feb 2018 04:53:14 -0500 (EST)

branch: master
commit 14bea80520b9330fe2cc253ed9454a468c226415
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>

    Prefer '_' suffix to 'm_' prefix for data members
---
 main_wx_test.cpp | 2 +-
 wx_test_case.hpp | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/main_wx_test.cpp b/main_wx_test.cpp
index 64ec510..7f52d1a 100644
--- a/main_wx_test.cpp
+++ b/main_wx_test.cpp
@@ -520,7 +520,7 @@ void application_test::list_tests()
 } // Unnamed namespace.
 
 wx_base_test_case::wx_base_test_case(char const* name)
-    :m_name(name)
+    :name_(name)
 {
     application_test::instance().add_test(this);
 }
diff --git a/wx_test_case.hpp b/wx_test_case.hpp
index fa74056..5d65a4a 100644
--- a/wx_test_case.hpp
+++ b/wx_test_case.hpp
@@ -37,7 +37,7 @@ class wx_base_test_case
     /// This function should throw an exception to signal any failures.
     virtual void run() = 0;
 
-    char const* get_name() const { return m_name; }
+    char const* get_name() const { return name_; }
 
     // Only required to fix g++ warning about a class having virtual functions
     // but a non-virtual dtor, as this class is not used polymorphically the
@@ -92,7 +92,7 @@ class wx_base_test_case
     /// The argument must be a literal, as we just store the pointer.
     explicit wx_base_test_case(char const* name);
 
-    char const* const m_name;
+    char const* const name_;
 
   private:
     wx_base_test_case(wx_base_test_case const&) = delete;



reply via email to

[Prev in Thread] Current Thread [Next in Thread]