[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 3781a93 5/9: Refactor for rearrangeability
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master 3781a93 5/9: Refactor for rearrangeability |
Date: |
Sat, 17 Feb 2018 11:13:05 -0500 (EST) |
branch: master
commit 3781a933a0b1a2d1f5c4097f11c634796b0ee313
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>
Refactor for rearrangeability
Enabled relocation of a large chunk of documentation and code in this
function body that breaks the flow and makes it harder to get the whole
at a glance.
---
ledger_invariant.cpp | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/ledger_invariant.cpp b/ledger_invariant.cpp
index 07e5521..f43db91 100644
--- a/ledger_invariant.cpp
+++ b/ledger_invariant.cpp
@@ -1293,13 +1293,14 @@ void LedgerInvariant::CalculateIrrs(Ledger const&
LedgerValues)
// mce_run_gen_guar_sep_zero
// are always used in pairs, so that either may be tested as a
// proxy for the other.
- if
+ bool const zero_sepacct_interest_bases_undefined =
(0 == std::count
(LedgerValues.GetRunBases().begin()
,LedgerValues.GetRunBases().end()
,mce_run_gen_curr_sep_zero
)
- )
+ );
+ if(zero_sepacct_interest_bases_undefined)
{
// PDF !! Initialize the '0'-suffixed IRRs here.
irr_initialized_ = true;
- [lmi-commits] [lmi] master updated (422cd51 -> 5e372c6), Greg Chicares, 2018/02/17
- [lmi-commits] [lmi] master 36d5a6b 1/9: Remove unnecessary static_cast, Greg Chicares, 2018/02/17
- [lmi-commits] [lmi] master 513e891 4/9: Improve documentation, Greg Chicares, 2018/02/17
- [lmi-commits] [lmi] master ca32be5 3/9: Find a root of the zero polynomial, Greg Chicares, 2018/02/17
- [lmi-commits] [lmi] master 3781a93 5/9: Refactor for rearrangeability,
Greg Chicares <=
- [lmi-commits] [lmi] master 0ae54b4 2/9: Refactor for terseness, Greg Chicares, 2018/02/17
- [lmi-commits] [lmi] master b710396 8/9: Don't assume--assert, Greg Chicares, 2018/02/17
- [lmi-commits] [lmi] master 3f1dd88 7/9: Consolidate and improve documentation, Greg Chicares, 2018/02/17
- [lmi-commits] [lmi] master 060aecf 6/9: Rearrange for comprehensibility, Greg Chicares, 2018/02/17
- [lmi-commits] [lmi] master 5e372c6 9/9: Perform ledger IRR initialization in one place only, Greg Chicares, 2018/02/17