[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master bd86afe 04/12: Shorten an enumerator's name
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master bd86afe 04/12: Shorten an enumerator's name |
Date: |
Tue, 22 May 2018 17:09:21 -0400 (EDT) |
branch: master
commit bd86afe2f2f3d0e585e757ff391aa07993f3f8e4
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>
Shorten an enumerator's name
Typing the shortened name into a search engine immediately reveals the
meaning.
---
group_quote_pdf_gen_wx.cpp | 2 +-
oecumenic_enumerations.hpp | 2 +-
wx_table_generator.cpp | 10 +++++-----
wx_table_generator.hpp | 10 +++++-----
4 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/group_quote_pdf_gen_wx.cpp b/group_quote_pdf_gen_wx.cpp
index 2bd49fb..1425a91 100644
--- a/group_quote_pdf_gen_wx.cpp
+++ b/group_quote_pdf_gen_wx.cpp
@@ -678,7 +678,7 @@ void group_quote_pdf_generator_wx::save(std::string const&
output_filename)
oenum_elasticity elasticity = oe_inelastic;
// PDF !! This doesn't fit into the switch logic below.
if(e_col_name == col) {elasticity = oe_elastic;}
- oenum_alignment_horizontal alignment = oe_center;
+ oenum_h_align alignment = oe_center;
// PDF !! This doesn't fit into the switch logic below.
if(e_col_name == col) {alignment = oe_left;}
diff --git a/oecumenic_enumerations.hpp b/oecumenic_enumerations.hpp
index 84d24c1..00269dd 100644
--- a/oecumenic_enumerations.hpp
+++ b/oecumenic_enumerations.hpp
@@ -34,7 +34,7 @@ enum oenum_alb_or_anb
,oe_age_nearest_birthday_ties_older
};
-enum oenum_alignment_horizontal
+enum oenum_h_align
{oe_left
,oe_center
,oe_right
diff --git a/wx_table_generator.cpp b/wx_table_generator.cpp
index d87c557..598c089 100644
--- a/wx_table_generator.cpp
+++ b/wx_table_generator.cpp
@@ -163,11 +163,11 @@ class wx_table_generator::column_info
{
public:
column_info
- (std::string const& header
- ,int width
- ,oenum_visibility const visibility
- ,oenum_elasticity const elasticity
- ,oenum_alignment_horizontal const alignment
+ (std::string const& header
+ ,int width
+ ,oenum_visibility const visibility
+ ,oenum_elasticity const elasticity
+ ,oenum_h_align const alignment
)
:col_header_ (header)
,col_width_ (width)
diff --git a/wx_table_generator.hpp b/wx_table_generator.hpp
index df3b180..71b900b 100644
--- a/wx_table_generator.hpp
+++ b/wx_table_generator.hpp
@@ -37,11 +37,11 @@
struct column_parameters
{
- std::string const header;
- std::string const widest_text;
- oenum_visibility const visibility;
- oenum_elasticity const elasticity;
- oenum_alignment_horizontal const alignment;
+ std::string const header;
+ std::string const widest_text;
+ oenum_visibility const visibility;
+ oenum_elasticity const elasticity;
+ oenum_h_align const alignment;
};
/// Specialized styles for first wx_table_generator ctor argument.
- [lmi-commits] [lmi] master updated (a1f29ab -> 40a94aa), Greg Chicares, 2018/05/22
- [lmi-commits] [lmi] master b219dd9 01/12: Note a possible future return-type change, Greg Chicares, 2018/05/22
- [lmi-commits] [lmi] master b725bcb 05/12: Reorder PDF column parameters, Greg Chicares, 2018/05/22
- [lmi-commits] [lmi] master 2c95260 07/12: Prefer 'switch' to 'if' for a two-valued enum, Greg Chicares, 2018/05/22
- [lmi-commits] [lmi] master bd86afe 04/12: Shorten an enumerator's name,
Greg Chicares <=
- [lmi-commits] [lmi] master 9e1ac25 09/12: Fold a "ternary" conditional into a switch, Greg Chicares, 2018/05/22
- [lmi-commits] [lmi] master 40a94aa 12/12: Explain why width of an elastic column is initialized to zero, Greg Chicares, 2018/05/22
- [lmi-commits] [lmi] master 6b93e91 11/12: Remove an unneeded auxiliary function, Greg Chicares, 2018/05/22
- [lmi-commits] [lmi] master b232274 02/12: Make column elasticity enumerative rather than boolean, Greg Chicares, 2018/05/22
- [lmi-commits] [lmi] master 7e64de5 03/12: Make column alignment enumerative rather than boolean, Greg Chicares, 2018/05/22
- [lmi-commits] [lmi] master e2e4ad6 08/12: Remove a temporary assertion that is no longer useful, Greg Chicares, 2018/05/22
- [lmi-commits] [lmi] master 637d535 06/12: Rework PDF column formatting in terms of "elasticity", Greg Chicares, 2018/05/22
- [lmi-commits] [lmi] master 6076b33 10/12: Simplify code; rewrite documentation, Greg Chicares, 2018/05/22