[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)
{
- [lmi-commits] [lmi] master updated (4da8dbb -> b00dae4), Greg Chicares, 2018/08/23
- [lmi-commits] [lmi] master 686d9df 1/6: Tighten an assertion that was too lax, Greg Chicares, 2018/08/23
- [lmi-commits] [lmi] master e6271b3 4/6: Move a couple lines of documentation, Greg Chicares, 2018/08/23
- [lmi-commits] [lmi] master 43dcd1b 5/6: Make all table_column_info data members private and non-const, Greg Chicares, 2018/08/23
- [lmi-commits] [lmi] master b00dae4 6/6: Use braces in ctor-initializers,
Greg Chicares <=
- [lmi-commits] [lmi] master 212d81a 3/6: Pass the bulky argument of set_column_widths() by const reference, Greg Chicares, 2018/08/23
- [lmi-commits] [lmi] master 8fad1e6 2/6: Return a vector from set_column_widths(), Greg Chicares, 2018/08/23