lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] master 8db602c 16/25: Turn several members into loca


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 8db602c 16/25: Turn several members into local variables
Date: Wed, 24 Feb 2021 19:00:53 -0500 (EST)

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

    Turn several members into local variables
---
 basic_values.hpp | 4 ----
 ihs_basicval.cpp | 6 +++++-
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/basic_values.hpp b/basic_values.hpp
index 3a23de5..637bde8 100644
--- a/basic_values.hpp
+++ b/basic_values.hpp
@@ -448,10 +448,6 @@ class LMI_SO BasicValues
 
     void                Init7702();
     void                Init7702A();
-    std::vector<double> Mly7702iGlp;
-    std::vector<double> Mly7702iGsp;
-    std::vector<double> Mly7702ig;
-    std::vector<double> Mly7702qc;
     std::vector<double> MlyDcvqc;
     mutable std::vector<double> Non7702CompliantCorridor;
 
diff --git a/ihs_basicval.cpp b/ihs_basicval.cpp
index 382ddba..e527e20 100644
--- a/ihs_basicval.cpp
+++ b/ihs_basicval.cpp
@@ -416,7 +416,7 @@ double BasicValues::InvestmentManagementFee() const
 
 void BasicValues::Init7702()
 {
-    Mly7702qc = GetIrc7702QRates();
+    std::vector<double> Mly7702qc = GetIrc7702QRates();
     double max_coi_rate = database().query<double>(DB_MaxMonthlyCoiRate);
     LMI_ASSERT(0.0 != max_coi_rate);
     max_coi_rate = 1.0 / max_coi_rate;
@@ -486,6 +486,10 @@ void BasicValues::Init7702()
     // the issue date constitutes a short-term guarantee that must be
     // reflected in the 7702 interest rates (excluding the GLP rate).
 
+    std::vector<double> Mly7702iGlp;
+    std::vector<double> Mly7702iGsp;
+    std::vector<double> Mly7702ig;
+
     Mly7702iGlp.assign(Length, 0.0);
     assign
         (Mly7702iGlp



reply via email to

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