[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_;
- [lmi-commits] [lmi] master updated (246f754 -> 76bcb28), Greg Chicares, 2018/02/09
- [lmi-commits] [lmi] master 2c2145d 3/9: Fix closing brace indentation in wx_table_generator.cpp, Greg Chicares, 2018/02/09
- [lmi-commits] [lmi] master 4b75c18 5/9: Add a comment explaining why column_info::width_ is not const, Greg Chicares, 2018/02/09
- [lmi-commits] [lmi] master 11da7b5 1/9: Extract get_needed_pages_count() from PDF generation code, Greg Chicares, 2018/02/09
- [lmi-commits] [lmi] master 58c87b5 7/9: Make column_info::is_variable_width_ field private, Greg Chicares, 2018/02/09
- [lmi-commits] [lmi] master 76bcb28 9/9: Avoid passing an enum by const value, Greg Chicares, 2018/02/09
- [lmi-commits] [lmi] master ce0f83e 8/9: Clip variable-width columns in wx_table_generator, Greg Chicares, 2018/02/09
- [lmi-commits] [lmi] master 8c1e124 2/9: Add simple unit test for get_needed_pages_count(), Greg Chicares, 2018/02/09
- [lmi-commits] [lmi] master 79144a7 4/9: Make unchangeable wx_table_generator::column_info fields const,
Greg Chicares <=
- [lmi-commits] [lmi] master 2b0c1fd 6/9: Replace column_info::is_centered_ with is_centered(), Greg Chicares, 2018/02/09