lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] master 2b88ca2 1/6: Use query<int> with an obsolesce


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 2b88ca2 1/6: Use query<int> with an obsolescent database entity
Date: Fri, 9 Nov 2018 20:47:59 -0500 (EST)

branch: master
commit 2b88ca24d5e105b97f50b7d57c2a0fb7ff8a90d3
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>

    Use query<int> with an obsolescent database entity
    
    DB_MinInitPremType is enumerative, but there's no point in adding an
    enum for it because it will be expunged in a month or two.
---
 ihs_acctval.cpp | 6 +++---
 ihs_avmly.cpp   | 2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/ihs_acctval.cpp b/ihs_acctval.cpp
index 7f9a5aa..e61da12 100644
--- a/ihs_acctval.cpp
+++ b/ihs_acctval.cpp
@@ -1012,7 +1012,7 @@ double AccountValue::MinInitDumpin() const
 {
     if
         (  0 == Year
-        && 1 == database().Query(DB_MinInitPremType)
+        && 1 == database().query<int>(DB_MinInitPremType)
         && yare_input_.EffectiveDate == yare_input_.InforceAsOfDate
         )
         {
@@ -1029,7 +1029,7 @@ double AccountValue::MinInitPrem() const
 {
     if
         (  0 == Year
-        && 1 == database().Query(DB_MinInitPremType)
+        && 1 == database().query<int>(DB_MinInitPremType)
         && yare_input_.EffectiveDate == yare_input_.InforceAsOfDate
         )
         {
@@ -1074,7 +1074,7 @@ double AccountValue::ModalMinInitPremShortfall() const
 {
     if
         (  0 == Year
-        && 1 == database().Query(DB_MinInitPremType)
+        && 1 == database().query<int>(DB_MinInitPremType)
         && yare_input_.EffectiveDate == yare_input_.InforceAsOfDate
         )
         {
diff --git a/ihs_avmly.cpp b/ihs_avmly.cpp
index 412ace5..eecc7cb 100644
--- a/ihs_avmly.cpp
+++ b/ihs_avmly.cpp
@@ -1210,7 +1210,7 @@ void AccountValue::TxAscertainDesiredPayment()
             ;
         }
 
-    if(0 == Year && ee_pay_this_month && 1 == 
database().Query(DB_MinInitPremType))
+    if(0 == Year && ee_pay_this_month && 1 == 
database().query<int>(DB_MinInitPremType))
         {
         double z = ModalMinInitPremShortfall();
         // Illustration-reg guaranteed premium ignores GPT limit.



reply via email to

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