lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] master 5cf534c 04/22: Constify


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 5cf534c 04/22: Constify
Date: Sun, 6 Jun 2021 21:37:59 -0400 (EDT)

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

    Constify
---
 financial.hpp   | 2 +-
 ihs_avsolve.cpp | 2 +-
 solve.cpp       | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/financial.hpp b/financial.hpp
index 9c7f366..edfef5f 100644
--- a/financial.hpp
+++ b/financial.hpp
@@ -115,7 +115,7 @@ class irr_helper
 
     long double operator()()
         {
-        root_type z = decimal_root
+        root_type const z = decimal_root
             (-1.0       // A priori lower bound.
             ,1000.0     // Assumed upper bound.
             ,bias_lower // Return the final bound with the lower fv.
diff --git a/ihs_avsolve.cpp b/ihs_avsolve.cpp
index 741d226..95ce206 100644
--- a/ihs_avsolve.cpp
+++ b/ihs_avsolve.cpp
@@ -449,7 +449,7 @@ currency AccountValue::Solve
         }
 
     SolveHelper solve_helper(*this, solve_set_fn);
-    root_type solution = decimal_root
+    root_type const solution = decimal_root
         (lower_bound
         ,upper_bound
         ,bias
diff --git a/solve.cpp b/solve.cpp
index 3f196e4..6fe047e 100644
--- a/solve.cpp
+++ b/solve.cpp
@@ -322,7 +322,7 @@ currency AccountValue::Solve()
             }
         }
 
-    root_type Solution = decimal_root
+    root_type const Solution = decimal_root
         (LowerBound
         ,UpperBound
         ,Bias



reply via email to

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