[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;
- [lmi-commits] [lmi] master updated (ea25cc6 -> 058e112), Greg Chicares, 2018/09/27
- [lmi-commits] [lmi] master 7d7cd0d 4/9: Adjust whitespace for vertical alignment, Greg Chicares, 2018/09/27
- [lmi-commits] [lmi] master 3d75aa3 2/9: Rearrange headers, Greg Chicares, 2018/09/27
- [lmi-commits] [lmi] master 429acb9 1/9: Add missing 'pyx="values_tsv"' support, Greg Chicares, 2018/09/27
- [lmi-commits] [lmi] master 58b0c04 3/9: Sort columns alphabetically in TSV output, Greg Chicares, 2018/09/27
- [lmi-commits] [lmi] master 0593224 5/9: Reorder statements more logically,
Greg Chicares <=
- [lmi-commits] [lmi] master bb0eb2c 7/9: Favor problem-domain terminology, Greg Chicares, 2018/09/27
- [lmi-commits] [lmi] master 16da526 6/9: Change the format of 'GenAcctAllocation', Greg Chicares, 2018/09/27
- [lmi-commits] [lmi] master 058e112 9/9: Assert a formerly implicit assumption, Greg Chicares, 2018/09/27
- [lmi-commits] [lmi] master 957fb26 8/9: Favor problem-domain terminology, Greg Chicares, 2018/09/27