lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] master aab3295 07/10: Rename a local variable


From: Greg Chicares
Subject: [lmi-commits] [lmi] master aab3295 07/10: Rename a local variable
Date: Mon, 1 Mar 2021 09:39:23 -0500 (EST)

branch: master
commit aab32955e5faf020529d7bc813a60982639e4da4
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>

    Rename a local variable
    
    'spread' would be a poor variable name because it is a common English
    word; 'av_load' is more descriptive anyway.
---
 i7702.cpp | 13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)

diff --git a/i7702.cpp b/i7702.cpp
index 9ebd6b2..6860d1d 100644
--- a/i7702.cpp
+++ b/i7702.cpp
@@ -38,7 +38,7 @@ i7702::i7702
 {
     // Monthly guar net int for 7702 is
     //   greater of {iglp(), igsp()} and annual guar int rate
-    //   less 7702 spread
+    //   less AV load
     //   transformed to monthly (simple subtraction?).
     // These interest rates belong here because they're used by
     // DCV calculations in the account value class as well as
@@ -75,15 +75,14 @@ i7702::i7702
     // the issue date constitutes a short-term guarantee that must be
     // reflected in the 7702 interest rates (excluding the GLP rate).
 
-    // local with -'_': to be renamed
-    std::vector<double> spread_;
-    database_.query_into(DB_CurrAcctValLoad, spread_);
+    std::vector<double> av_load;
+    database_.query_into(DB_CurrAcctValLoad, av_load);
     if
         (   database_.query<bool>(DB_AllowSepAcct)
         && !database_.query<bool>(DB_AllowGenAcct)
         )
         {
-        spread_ += stratified_.minimum_tiered_sepacct_load_for_7702();
+        av_load += stratified_.minimum_tiered_sepacct_load_for_7702();
         }
 
     gross_.assign(database_.length(), 0.0);
@@ -100,7 +99,7 @@ i7702::i7702
         (net_glp_
         ,apply_unary
             (i_upper_12_over_12_from_i<double>()
-            ,Max(statutory7702i, guar_int) - spread_
+            ,Max(statutory7702i, guar_int) - av_load
             )
         );
 
@@ -109,7 +108,7 @@ i7702::i7702
         (net_gsp_
         ,apply_unary
             (i_upper_12_over_12_from_i<double>()
-            ,Max(0.02 + statutory7702i, guar_int) - spread_
+            ,Max(0.02 + statutory7702i, guar_int) - av_load
             )
         );
 



reply via email to

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