lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] master 58c87b5 7/9: Make column_info::is_variable_wi


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 58c87b5 7/9: Make column_info::is_variable_width_ field private
Date: Fri, 9 Feb 2018 17:39:16 -0500 (EST)

branch: master
commit 58c87b54a4252a7e3c34b19153542ded6aacc4c7
Author: Vadim Zeitlin <address@hidden>
Commit: Gregory W. Chicares <address@hidden>

    Make column_info::is_variable_width_ field private
    
    This field is an implementation detail used for implementing other
    column_info methods and shouldn't be used directly.
    
    Also change column_info to be a class instead of a struct now that it
    has private fields.
---
 wx_table_generator.hpp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/wx_table_generator.hpp b/wx_table_generator.hpp
index 4ef36dc..aa31a52 100644
--- a/wx_table_generator.hpp
+++ b/wx_table_generator.hpp
@@ -161,8 +161,9 @@ class wx_table_generator
     int row_height_;
     int column_margin_;
 
-    struct column_info
+    class column_info
     {
+      public:
         column_info(std::string const& header, int width)
             :header_(header)
             ,width_(width)
@@ -191,6 +192,7 @@ class wx_table_generator
         // and hence is non-const.
         int width_;
 
+      private:
         bool const is_variable_width_;
     };
 



reply via email to

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