[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 149a288 6/7: Improve a local variable's name
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master 149a288 6/7: Improve a local variable's name |
Date: |
Wed, 23 May 2018 21:18:26 -0400 (EDT) |
branch: master
commit 149a288b5c72f6410e3121b70fc1f78a6b114a5d
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>
Improve a local variable's name
Replaced 'n_dec' (whose prefix suggests that it's the cardinality of
some set, but no such set is evident) with 'decimals' (which is already
used elsewhere in lmi with the same meaning).
---
group_quote_pdf_gen_wx.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/group_quote_pdf_gen_wx.cpp b/group_quote_pdf_gen_wx.cpp
index 78ff8a3..a9ac147 100644
--- a/group_quote_pdf_gen_wx.cpp
+++ b/group_quote_pdf_gen_wx.cpp
@@ -1082,7 +1082,7 @@ void group_quote_pdf_generator_wx::output_aggregate_values
for(int col = e_first_totalled_column; col < e_col_max; ++col)
{
- int const n_dec =
+ int const decimals =
((e_col_basic_face_amount == col) ? 0
:(e_col_basic_premium == col) ? 2
:(e_col_supplemental_face_amount == col) ? 0
@@ -1091,7 +1091,7 @@ void group_quote_pdf_generator_wx::output_aggregate_values
:(e_col_total_premium == col) ? 2
:throw std::logic_error("Invalid column type.")
);
- std::pair<int,oenum_format_style> const f(n_dec, oe_format_normal);
+ std::pair<int,oenum_format_style> const f(decimals, oe_format_normal);
table_gen.output_highlighted_cell
(col
- [lmi-commits] [lmi] master updated (716c729 -> 9f0eebc), Greg Chicares, 2018/05/23
- [lmi-commits] [lmi] master 15f8f62 1/7: Rename some local variables for concinnity, Greg Chicares, 2018/05/23
- [lmi-commits] [lmi] master 21260f8 3/7: Rename a member function, Greg Chicares, 2018/05/23
- [lmi-commits] [lmi] master 149a288 6/7: Improve a local variable's name,
Greg Chicares <=
- [lmi-commits] [lmi] master e4ec715 4/7: Rewrite documentation, Greg Chicares, 2018/05/23
- [lmi-commits] [lmi] master 151a1ea 2/7: Add missing period at end of sentence, Greg Chicares, 2018/05/23
- [lmi-commits] [lmi] master 9f0eebc 7/7: Rename certain local variables, Greg Chicares, 2018/05/23
- [lmi-commits] [lmi] master f1a98e0 5/7: Improve concinnity, Greg Chicares, 2018/05/23