[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
- [lmi-commits] [lmi] master updated (061fa21 -> 110f4b9), Greg Chicares, 2020/08/26
- [lmi-commits] [lmi] master a5279b7 5/7: Round gross and net withdrawals, Greg Chicares, 2020/08/26
- [lmi-commits] [lmi] master 110f4b9 7/7: Round apportioned AV increments, Greg Chicares, 2020/08/26
- [lmi-commits] [lmi] master 2b902eb 1/7: Refactor for clarity, Greg Chicares, 2020/08/26
- [lmi-commits] [lmi] master 3453e8d 2/7: Rename a local variable,
Greg Chicares <=
- [lmi-commits] [lmi] master d618023 3/7: Preserve total specamt when apportioning changes, Greg Chicares, 2020/08/26
- [lmi-commits] [lmi] master 53ebc6f 4/7: Round changes to specamt, Greg Chicares, 2020/08/26
- [lmi-commits] [lmi] master ceaa572 6/7: Round apportioned AV decrements, Greg Chicares, 2020/08/26