lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] master b00dae4 6/6: Use braces in ctor-initializers


From: Greg Chicares
Subject: [lmi-commits] [lmi] master b00dae4 6/6: Use braces in ctor-initializers
Date: Thu, 23 Aug 2018 19:59:30 -0400 (EDT)

branch: master
commit b00dae44ea46e066793b56f912f76b91acd1c9af
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>

    Use braces in ctor-initializers
---
 report_table.hpp       |  8 ++++----
 wx_table_generator.cpp | 20 ++++++++++----------
 2 files changed, 14 insertions(+), 14 deletions(-)

diff --git a/report_table.hpp b/report_table.hpp
index e425427..ccbae02 100644
--- a/report_table.hpp
+++ b/report_table.hpp
@@ -74,10 +74,10 @@ class LMI_SO table_column_info
         ,oenum_h_align    const  alignment
         ,oenum_elasticity const  elasticity
         )
-        :col_header_ (header)
-        ,col_width_  (width)
-        ,alignment_  (alignment)
-        ,is_elastic_ (oe_elastic == elasticity)
+        :col_header_ {header}
+        ,col_width_  {width}
+        ,alignment_  {alignment}
+        ,is_elastic_ {oe_elastic == elasticity}
         {
         }
 
diff --git a/wx_table_generator.cpp b/wx_table_generator.cpp
index 75fe8d6..35ca797 100644
--- a/wx_table_generator.cpp
+++ b/wx_table_generator.cpp
@@ -42,17 +42,17 @@ wx_table_generator::wx_table_generator
     ,int                                   left_margin
     ,int                                   total_width
     )
-    :indices_          (indices)
-    ,dc_               (dc)
-    ,left_margin_      (left_margin)
-    ,total_width_      (total_width)
-    ,char_height_      (dc_.GetCharHeight())
+    :indices_          {indices}
+    ,dc_               {dc}
+    ,left_margin_      {left_margin}
+    ,total_width_      {total_width}
+    ,char_height_      {dc_.GetCharHeight()}
     // Arbitrarily use 1.333 line spacing.
-    ,row_height_       ((4 * char_height_ + 2) / 3)
-    ,one_em_           (dc_.GetTextExtent("M").x)
-    ,max_header_lines_ (1)
-    ,draw_separators_  (true)
-    ,use_bold_headers_ (true)
+    ,row_height_       {(4 * char_height_ + 2) / 3}
+    ,one_em_           {dc_.GetTextExtent("M").x}
+    ,max_header_lines_ {1}
+    ,draw_separators_  {true}
+    ,use_bold_headers_ {true}
 {
     for(auto const& i : vc)
         {



reply via email to

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