lmi-commits
[Top][All Lists]
Advanced

[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



reply via email to

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