lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] valyuta/002 3d1ff11 06/14: Remove useless casts


From: Greg Chicares
Subject: [lmi-commits] [lmi] valyuta/002 3d1ff11 06/14: Remove useless casts
Date: Thu, 17 Sep 2020 16:27:14 -0400 (EDT)

branch: valyuta/002
commit 3d1ff11acb2b59e2999ef7f6f07760efd62f8a7d
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>

    Remove useless casts
---
 ihs_acctval.cpp  | 2 +-
 ihs_avstrtgy.cpp | 6 ++----
 2 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/ihs_acctval.cpp b/ihs_acctval.cpp
index e4c48e7..a9a1de5 100644
--- a/ihs_acctval.cpp
+++ b/ihs_acctval.cpp
@@ -345,7 +345,7 @@ currency AccountValue::RunOneCell(mcenum_run_basis a_Basis)
             IncrementEOM
                 (year
                 ,month
-                ,currency(SepAcctValueAfterDeduction)
+                ,SepAcctValueAfterDeduction
                 ,CumPmts
                 );
             }
diff --git a/ihs_avstrtgy.cpp b/ihs_avstrtgy.cpp
index fb3197f..41f81d8 100644
--- a/ihs_avstrtgy.cpp
+++ b/ihs_avstrtgy.cpp
@@ -63,14 +63,12 @@ currency AccountValue::CalculateSpecAmtFromStrategy
     ,mcenum_sa_strategy strategy
     ) const
 {
-    currency annualized_pmt = currency
-        // should there be currency::operator*=(int)?
-        (
+    currency annualized_pmt =
             Outlay_->ee_premium_modes ()[reference_year]
           * Outlay_->ee_modal_premiums()[reference_year]
         +   Outlay_->er_premium_modes ()[reference_year]
           * Outlay_->er_modal_premiums()[reference_year]
-        );
+        ;
     switch(strategy)
         {
         case mce_sa_input_scalar:



reply via email to

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