lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] master 3453e8d 2/7: Rename a local variable


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 3453e8d 2/7: Rename a local variable
Date: Wed, 26 Aug 2020 20:09:02 -0400 (EDT)

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

    Rename a local variable
    
    Prefer lowercase_with_underscores for locals at least.
---
 ihs_avmly.cpp | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/ihs_avmly.cpp b/ihs_avmly.cpp
index b0adc69..e3136c4 100644
--- a/ihs_avmly.cpp
+++ b/ihs_avmly.cpp
@@ -690,7 +690,7 @@ double AccountValue::minimum_specified_amount(bool 
issuing_now, bool term_rider)
 // Make sure ActualSpecAmt is never less than minimum specamt.
 void AccountValue::ChangeSpecAmtBy(double delta)
 {
-    double ProportionAppliedToTerm = 0.0;
+    double term_proportion = 0.0;
     double const old_total_specamt = ActualSpecAmt + TermSpecAmt;
     // Adjust term here only if it's formally a rider.
     if(TermRiderActive && !TermIsNotRider)
@@ -699,23 +699,23 @@ void AccountValue::ChangeSpecAmtBy(double delta)
             {
             case mce_adjust_term:
                 {
-                ProportionAppliedToTerm = 1.0;
+                term_proportion = 1.0;
                 }
                 break;
             case mce_adjust_both:
                 {
-                ProportionAppliedToTerm = TermSpecAmt / old_total_specamt;
+                term_proportion = TermSpecAmt / old_total_specamt;
                 }
                 break;
             case mce_adjust_base:
                 {
-                ProportionAppliedToTerm = 0.0;
+                term_proportion = 0.0;
                 }
                 break;
             }
 
-        ActualSpecAmt += delta * (1.0 - ProportionAppliedToTerm);
-        TermSpecAmt += delta * ProportionAppliedToTerm;
+        ActualSpecAmt += delta * (1.0 - term_proportion);
+        TermSpecAmt += delta * term_proportion;
         if(TermSpecAmt < 0.0)
             {
             // Reducing the term rider's specified amount to a value



reply via email to

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