diff options
author | John Wiegley <johnw@newartisans.com> | 2011-02-28 16:24:15 -0500 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2011-02-28 16:24:15 -0500 |
commit | 8388baafd3e2c6e4b2f76878215d503e8842da27 (patch) | |
tree | 246422575a6338acfc946ce501ae4e2df056ccf1 /src/timelog.cc | |
parent | 021fc50842a85d8357ca70c13e35b169a4d91e29 (diff) | |
download | fork-ledger-8388baafd3e2c6e4b2f76878215d503e8842da27.tar.gz fork-ledger-8388baafd3e2c6e4b2f76878215d503e8842da27.tar.bz2 fork-ledger-8388baafd3e2c6e4b2f76878215d503e8842da27.zip |
Support Boost 1.46 and Boost.Filesystem v3
Diffstat (limited to 'src/timelog.cc')
-rw-r--r-- | src/timelog.cc | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/timelog.cc b/src/timelog.cc index 698e2420..ee9a0b6c 100644 --- a/src/timelog.cc +++ b/src/timelog.cc @@ -117,21 +117,22 @@ namespace { } } // unnamed namespace -time_log_t::~time_log_t() +void time_log_t::close() { - TRACE_DTOR(time_log_t); - if (! time_xacts.empty()) { std::list<account_t *> accounts; foreach (time_xact_t& time_xact, time_xacts) accounts.push_back(time_xact.account); - foreach (account_t * account, accounts) + foreach (account_t * account, accounts) { + DEBUG("timelog", "Clocking out from account " << account->fullname()); clock_out_from_timelog(time_xacts, time_xact_t(none, CURRENT_TIME(), account), journal, scope); - + if (context_count) + (*context_count)++; + } assert(time_xacts.empty()); } } |