lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] master 1db9c47 4/5: Eliminate an unnecessary local v


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 1db9c47 4/5: Eliminate an unnecessary local variable
Date: Thu, 25 Oct 2018 13:53:13 -0400 (EDT)

branch: master
commit 1db9c475feb869999a39962b64e0b4be4c71ec33
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>

    Eliminate an unnecessary local variable
---
 ihs_avmly.cpp | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/ihs_avmly.cpp b/ihs_avmly.cpp
index 8e4b66c..2108e98 100644
--- a/ihs_avmly.cpp
+++ b/ihs_avmly.cpp
@@ -1593,8 +1593,6 @@ void AccountValue::TxSetBOMAV()
 
 void AccountValue::TxSetDeathBft()
 {
-    double AV = TotalAccountValue();
-
     switch(YearsDBOpt)
         {
         case mce_option1:
@@ -1606,7 +1604,7 @@ void AccountValue::TxSetDeathBft()
         case mce_option2:
             {
             // Negative AV doesn't decrease death benefit.
-            DBIgnoringCorr = ActualSpecAmt + std::max(0.0, AV);
+            DBIgnoringCorr = ActualSpecAmt + std::max(0.0, 
TotalAccountValue());
             DB7702A        = ActualSpecAmt;
             }
             break;



reply via email to

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