lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] master afd749a 2/8: Improve concinnity


From: Greg Chicares
Subject: [lmi-commits] [lmi] master afd749a 2/8: Improve concinnity
Date: Thu, 27 May 2021 17:44:26 -0400 (EDT)

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

    Improve concinnity
---
 ihs_avsolve.cpp | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/ihs_avsolve.cpp b/ihs_avsolve.cpp
index 81ae801..182c408 100644
--- a/ihs_avsolve.cpp
+++ b/ihs_avsolve.cpp
@@ -54,10 +54,9 @@ namespace
 
 class SolveHelper
 {
-    AccountValue& av;
   public:
-    SolveHelper(AccountValue& a_av)
-        :av {a_av}
+    SolveHelper(AccountValue& av)
+        :av_ {av}
         {
         }
     // CURRENCY !! decimal_root() invokes this thus:
@@ -69,8 +68,11 @@ class SolveHelper
     // or at least to make this function take a 'currency' argument.
     double operator()(double a_CandidateValue)
         {
-        return dblize(av.SolveTest(av.round_minutiae().c(a_CandidateValue)));
+        return dblize(av_.SolveTest(av_.round_minutiae().c(a_CandidateValue)));
         }
+
+  private:
+    AccountValue& av_;
 };
 
 /// Return outcome of a trial with a given input value.



reply via email to

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