lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [6566] Refactor for concision


From: gchicares
Subject: [lmi-commits] [6566] Refactor for concision
Date: Sun, 8 May 2016 21:39:14 +0000 (UTC)

Revision: 6566
          http://svn.sv.gnu.org/viewvc/?view=rev&root=lmi&revision=6566
Author:   chicares
Date:     2016-05-08 21:39:14 +0000 (Sun, 08 May 2016)
Log Message:
-----------
Refactor for concision

Modified Paths:
--------------
    lmi/trunk/group_quote_pdf_gen_wx.cpp

Modified: lmi/trunk/group_quote_pdf_gen_wx.cpp
===================================================================
--- lmi/trunk/group_quote_pdf_gen_wx.cpp        2016-05-08 15:30:17 UTC (rev 
6565)
+++ lmi/trunk/group_quote_pdf_gen_wx.cpp        2016-05-08 21:39:14 UTC (rev 
6566)
@@ -615,13 +615,10 @@
     page_metrics page_;
 
     int row_num_;
-
-    bool has_suppl_specamt_;
 };
 
 group_quote_pdf_generator_wx::group_quote_pdf_generator_wx()
     :row_num_(0)
-    ,has_suppl_specamt_(false)
 {
 }
 
@@ -765,10 +762,6 @@
             case e_col_supplemental_face_amount:
                 {
                 double const z = invar.TermSpecAmt.at(year);
-                if(0.0 != z)
-                    {
-                    has_suppl_specamt_ = true;
-                    }
                 rd.values[col] = '$' + ledger_format(z, f0);
                 if(is_composite)
                     {
@@ -826,6 +819,7 @@
     // total columns) be suppressed.
     if(is_composite)
         {
+        bool has_suppl_specamt_ = 0.0 != 
totals_.total(e_col_supplemental_face_amount);
         report_data_.plan_type_ =
             (invar.GroupIndivSelection ? invar.GroupQuoteRubricVoluntary
             :has_suppl_specamt_        ? invar.GroupQuoteRubricFusion




reply via email to

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