lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [6407] Initialize "antediluvian" data members


From: Greg Chicares
Subject: [lmi-commits] [6407] Initialize "antediluvian" data members
Date: Sat, 14 Nov 2015 12:26:32 +0000

Revision: 6407
          http://svn.sv.gnu.org/viewvc/?view=rev&root=lmi&revision=6407
Author:   chicares
Date:     2015-11-14 12:26:28 +0000 (Sat, 14 Nov 2015)
Log Message:
-----------
Initialize "antediluvian" data members

Modified Paths:
--------------
    lmi/trunk/ihs_acctval.cpp

Modified: lmi/trunk/ihs_acctval.cpp
===================================================================
--- lmi/trunk/ihs_acctval.cpp   2015-11-14 05:25:44 UTC (rev 6406)
+++ lmi/trunk/ihs_acctval.cpp   2015-11-14 12:26:28 UTC (rev 6407)
@@ -109,6 +109,22 @@
     ,OldDBOpt              (mce_option1)
     ,YearsDBOpt            (mce_option1)
 {
+    // Explicitly initialize antediluvian members. It's generally
+    // better to do this in the initializer-list, but here they can
+    // all be kept together.
+    LapseMonth               = 0;          // Antediluvian.
+    LapseYear                = 0;          // Antediluvian.
+    AVUnloaned               = 0.0;        // Antediluvian.
+    pmt                      = 0.0;        // Antediluvian.
+    mode                     = mce_annual; // Antediluvian.
+    ModeIndex                = 0;          // Antediluvian.
+    wd                       = 0.0;        // Antediluvian.
+    mlyguarv                 = 0.0;        // Antediluvian.
+    deathbft                 = 0.0;        // Antediluvian.
+    haswp                    = false;      // Antediluvian.
+    hasadb                   = false;      // Antediluvian.
+    mlydedtonextmodalpmtdate = 0.0;        // Antediluvian.
+
     InvariantValues().Init(this);
 // TODO ?? What are the values of the last two arguments here?
     VariantValues().Init(*this, GenBasis_, SepBasis_);




reply via email to

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