lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] master 4b75c18 5/9: Add a comment explaining why col


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 4b75c18 5/9: Add a comment explaining why column_info::width_ is not const
Date: Fri, 9 Feb 2018 17:39:16 -0500 (EST)

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

    Add a comment explaining why column_info::width_ is not const
    
    Make it more clear that this field is supposed to be modified directly.
---
 wx_table_generator.hpp | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/wx_table_generator.hpp b/wx_table_generator.hpp
index 992bacf..e1e931e 100644
--- a/wx_table_generator.hpp
+++ b/wx_table_generator.hpp
@@ -178,7 +178,11 @@ class wx_table_generator
         bool is_hidden() const { return header_.empty(); }
 
         std::string const header_;
+
+        // Note that this field is modified directly by wx_table_generator code
+        // and hence is non-const.
         int width_;
+
         bool const is_centered_;
     };
 



reply via email to

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