lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] valyuta/007 1cc76075 5/5: Regularize format names


From: Greg Chicares
Subject: [lmi-commits] [lmi] valyuta/007 1cc76075 5/5: Regularize format names
Date: Thu, 21 Apr 2022 13:32:52 -0400 (EDT)

branch: valyuta/007
commit 1cc76075a913af3d15bde5e4409aa0d2caf56c48
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>

    Regularize format names
    
    Removed a gratuitous inconsistency by using the same format names
    (second argument of ledger_format()) in 'group_quote_pdf_gen_wx.cpp'
    as in 'ledger_evaluator.cpp'.
---
 group_quote_pdf_gen_wx.cpp | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/group_quote_pdf_gen_wx.cpp b/group_quote_pdf_gen_wx.cpp
index b45db350..72b74cfd 100644
--- a/group_quote_pdf_gen_wx.cpp
+++ b/group_quote_pdf_gen_wx.cpp
@@ -397,12 +397,12 @@ void 
group_quote_pdf_generator_wx::global_report_data::fill_global_report_data
             ;
         if(invar.HasSpouseRider)
             {
-            std::pair<int,oenum_format_style> const f0(0, oe_format_normal);
+            std::pair<int,oenum_format_style> const f1(0, oe_format_normal);
             double const number_of_lives = invar.GetInforceLives().at(0);
             LMI_ASSERT(0.0 < number_of_lives);
             elected_riders_footnote_ +=
                   " The spouse coverage amount is $"
-                + ledger_format(invar.SpouseRiderAmount / number_of_lives, f0)
+                + ledger_format(invar.SpouseRiderAmount / number_of_lives, f1)
                 + "."
                 ;
             }
@@ -505,7 +505,7 @@ void group_quote_pdf_generator_wx::add_ledger(Ledger const& 
ledger)
 
     int const year = 0;
 
-    std::pair<int,oenum_format_style> const f0(0, oe_format_normal);
+    std::pair<int,oenum_format_style> const f1(0, oe_format_normal);
     std::pair<int,oenum_format_style> const f2(2, oe_format_normal);
 
     bool const is_composite = ledger.is_composite();
@@ -544,7 +544,7 @@ void group_quote_pdf_generator_wx::add_ledger(Ledger const& 
ledger)
             case e_col_basic_face_amount:
                 {
                 double const z = invar.SpecAmt.at(year) / 100.0;
-                rd.output_values[i] = '$' + ledger_format(z, f0);
+                rd.output_values[i] = '$' + ledger_format(z, f1);
                 if(is_composite)
                     {
                     totals_.total(i, z);
@@ -564,7 +564,7 @@ void group_quote_pdf_generator_wx::add_ledger(Ledger const& 
ledger)
             case e_col_supplemental_face_amount:
                 {
                 double const z = invar.TermSpecAmt.at(year) / 100.0;
-                rd.output_values[i] = '$' + ledger_format(z, f0);
+                rd.output_values[i] = '$' + ledger_format(z, f1);
                 if(is_composite)
                     {
                     totals_.total(i, z);
@@ -584,7 +584,7 @@ void group_quote_pdf_generator_wx::add_ledger(Ledger const& 
ledger)
             case e_col_total_face_amount:
                 {
                 double const z = (invar.SpecAmt.at(year) + 
invar.TermSpecAmt.at(year)) / 100.0;
-                rd.output_values[i] = '$' + ledger_format(z, f0);
+                rd.output_values[i] = '$' + ledger_format(z, f1);
                 if(is_composite)
                     {
                     totals_.total(i, z);



reply via email to

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