lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] master 83eb025 05/22: Rename a local variable


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 83eb025 05/22: Rename a local variable
Date: Sun, 6 Jun 2021 21:37:59 -0400 (EDT)

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

    Rename a local variable
    
    Reason: concinnity with 'ihs_avsolve.cpp'.
---
 solve.cpp | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/solve.cpp b/solve.cpp
index 6fe047e..e0673c9 100644
--- a/solve.cpp
+++ b/solve.cpp
@@ -322,7 +322,7 @@ currency AccountValue::Solve()
             }
         }
 
-    root_type const Solution = decimal_root
+    root_type const solution = decimal_root
         (LowerBound
         ,UpperBound
         ,Bias
@@ -330,12 +330,12 @@ currency AccountValue::Solve()
         ,SolveFn
         ,status()
         );
-    if(root_not_bracketed == Solution.second)
+    if(root_not_bracketed == solution.second)
         {
-        LMI_ASSERT(0.0 == Solution.first);
-        warning() << "Solution not found. Using zero instead." << LMI_FLUSH;
+        LMI_ASSERT(0.0 == solution.first);
+        warning() << "solution not found. Using zero instead." << LMI_FLUSH;
         }
-    currency const solution_cents = round_to_cents.c(Solution.first);
+    currency const solution_cents = round_to_cents.c(solution.first);
 
     Solving = false;
 



reply via email to

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