lmi-commits
[Top][All Lists]
Advanced

[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.



reply via email to

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