lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] valyuta/002 809d422 4/5: Prefer simpler syntax


From: Greg Chicares
Subject: [lmi-commits] [lmi] valyuta/002 809d422 4/5: Prefer simpler syntax
Date: Sun, 20 Sep 2020 12:55:18 -0400 (EDT)

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

    Prefer simpler syntax
---
 ihs_avsolve.cpp | 2 +-
 solve.cpp       | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/ihs_avsolve.cpp b/ihs_avsolve.cpp
index 75aeb66..3e819e8 100644
--- a/ihs_avsolve.cpp
+++ b/ihs_avsolve.cpp
@@ -214,7 +214,7 @@ currency AccountValue::SolveTest(currency a_CandidateValue)
     // SolveTargetDuration_ is in origin one. That's natural for loop
     // counters and iterators--it's one past the end--but indexing
     // must decrement it.
-    currency value = currency(VariantValues().CSVNet[SolveTargetDuration_ - 
1]);
+    currency value {VariantValues().CSVNet[SolveTargetDuration_ - 1]};
     if(mce_solve_for_target_naar == SolveTarget_)
         {
         value = currency
diff --git a/solve.cpp b/solve.cpp
index 3b98af0..3668401 100644
--- a/solve.cpp
+++ b/solve.cpp
@@ -93,7 +93,7 @@ currency SolveTest()
             );
         }
 
-    currency z = currency(ConstThat->VariantValues().CSVNet[ThatSolveTgtYear - 
1]);
+    currency z {ConstThat->VariantValues().CSVNet[ThatSolveTgtYear - 1]};
     if(Negative < C0)
         z = std::min(z, Negative);
     // IHS !! If SolveTgtYr within no-lapse period...see lmi.
@@ -351,7 +351,7 @@ currency AccountValue::Solve()
     // generate or analyze account values. This global variable is a
     // kludge, but so is 'That'; a function object is wanted instead.
     only_set_values = !Solving;
-    currency actual_solution = currency(Solution.first);
+    currency actual_solution {Solution.first};
 
     SolveFn(actual_solution.d());
     return actual_solution;



reply via email to

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