lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] master 79144a7 4/9: Make unchangeable wx_table_gener


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 79144a7 4/9: Make unchangeable wx_table_generator::column_info fields const
Date: Fri, 9 Feb 2018 17:39:16 -0500 (EST)

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

    Make unchangeable wx_table_generator::column_info fields const
    
    This wasn't possible to do before, with C++98, as it would have
    prevented the objects of this class from being stored in std::vector<>,
    but it can be done now.
---
 wx_table_generator.hpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/wx_table_generator.hpp b/wx_table_generator.hpp
index 0011dac..992bacf 100644
--- a/wx_table_generator.hpp
+++ b/wx_table_generator.hpp
@@ -177,9 +177,9 @@ class wx_table_generator
         // doesn't appear in the output at all.
         bool is_hidden() const { return header_.empty(); }
 
-        std::string header_;
+        std::string const header_;
         int width_;
-        bool is_centered_;
+        bool const is_centered_;
     };
 
     std::vector<column_info> columns_;



reply via email to

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