lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] master 0593224 5/9: Reorder statements more logicall


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 0593224 5/9: Reorder statements more logically
Date: Thu, 27 Sep 2018 12:53:51 -0400 (EDT)

branch: master
commit 0593224931f48014dc8246b25b48bec5a066cb65
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>

    Reorder statements more logically
    
    Restored the order of certain statements to match 'ledger_xml_io.cpp'.
    These three consecutive commits had made the order less logical:
      (A) commit b99ddb50 2018-02-16T02:48
      (B) commit fcd7e6a0 2018-02-16T03:15
      (C) commit 5e372c67 2018-02-17T16:05
    (A) perturbed the order only to support (B), but (B) was rendered
    unnecessary by (C), so (A) is no longer wanted.
---
 ledger_evaluator.cpp | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/ledger_evaluator.cpp b/ledger_evaluator.cpp
index a29adfc..f9f42c0 100644
--- a/ledger_evaluator.cpp
+++ b/ledger_evaluator.cpp
@@ -695,12 +695,6 @@ ledger_evaluator Ledger::make_evaluator() const
     scalar_map          scalars = ledger_invariant_->AllScalars;
     string_map          strings = ledger_invariant_->Strings;
 
-// GetMaxLength() is max *composite* length.
-//    int max_length = GetMaxLength();
-    double MaxDuration = ledger_invariant_->EndtAge - ledger_invariant_->Age;
-    scalars["MaxDuration"] = &MaxDuration;
-    int max_duration = static_cast<int>(MaxDuration);
-
     // Now we add the stuff that wasn't in the invariant
     // ledger's class's maps (indexable by name). Because we're
     // working with maps of pointers, we need pointers here.
@@ -716,6 +710,12 @@ ledger_evaluator Ledger::make_evaluator() const
     vectors["IrrCsv_Current"        ] = &ledger_invariant_->IrrCsvCurrInput;
     vectors["IrrDb_Current"         ] = &ledger_invariant_->IrrDbCurrInput ;
 
+// GetMaxLength() is max *composite* length.
+//    int max_length = GetMaxLength();
+    double MaxDuration = ledger_invariant_->EndtAge - ledger_invariant_->Age;
+    scalars["MaxDuration"] = &MaxDuration;
+    int max_duration = static_cast<int>(MaxDuration);
+
     std::vector<double> PolicyYear;
     std::vector<double> AttainedAge;
 



reply via email to

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