From e1d6c4bff27f41fbe57738205ba3548554380a73 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Fri, 10 Sep 2004 18:38:52 -0400 Subject: interval_t objects now play nicely with python. see the bottom of main.py --- walk.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'walk.cc') diff --git a/walk.cc b/walk.cc index b98dd3f1..cfecf392 100644 --- a/walk.cc +++ b/walk.cc @@ -256,10 +256,10 @@ void subtotal_transactions::operator()(transaction_t& xact) void interval_transactions::operator()(transaction_t& xact) { - std::time_t quant = interval.increment(begin); + std::time_t quant = interval.increment(interval.begin); if (std::difftime(xact.entry->date, quant) > 0) { if (last_xact) { - start = begin; + start = interval.begin; finish = quant; flush(); } @@ -279,7 +279,7 @@ void interval_transactions::operator()(transaction_t& xact) while (std::difftime(xact.entry->date, temp = interval.increment(quant)) > 0) quant = temp; - begin = quant; + interval.begin = quant; } subtotal_transactions::operator()(xact); -- cgit v1.2.3