[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 0b44727 2/7: Improve const correctness
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master 0b44727 2/7: Improve const correctness |
Date: |
Sat, 19 May 2018 12:54:40 -0400 (EDT) |
branch: master
commit 0b44727bf0dbaece66d3c9ccd45cd0188c192aa0
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>
Improve const correctness
struct column_parameters is always aggregate-initialized anyway, so its
members ought to be const.
---
wx_table_generator.hpp | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/wx_table_generator.hpp b/wx_table_generator.hpp
index 37c9058..81d2ef3 100644
--- a/wx_table_generator.hpp
+++ b/wx_table_generator.hpp
@@ -37,9 +37,9 @@
struct column_parameters
{
- std::string header;
- std::string widest_text;
- bool hidden;
+ std::string const header;
+ std::string const widest_text;
+ bool const hidden;
};
/// Specialized styles for first wx_table_generator ctor argument.
- [lmi-commits] [lmi] master updated (b8170c7 -> 13f9424), Greg Chicares, 2018/05/19
- [lmi-commits] [lmi] master 0b44727 2/7: Improve const correctness,
Greg Chicares <=
- [lmi-commits] [lmi] master 448b5fe 6/7: Add several enumerations for column styles, Greg Chicares, 2018/05/19
- [lmi-commits] [lmi] master c665c1d 4/7: Refine documentation, Greg Chicares, 2018/05/19
- [lmi-commits] [lmi] master ac83c23 5/7: Spell 'center' one way only, Greg Chicares, 2018/05/19
- [lmi-commits] [lmi] master 49ae301 3/7: Reverse sense of certain conditionals for readability, Greg Chicares, 2018/05/19
- [lmi-commits] [lmi] master 13f9424 7/7: Make column visibility enumerative rather than boolean, Greg Chicares, 2018/05/19
- [lmi-commits] [lmi] master 02fec5a 1/7: Pluralize name s/output_header/output_headers/, Greg Chicares, 2018/05/19