diff options
author | John Wiegley <johnw@newartisans.com> | 2012-05-15 00:22:00 -0600 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2012-05-15 00:22:00 -0600 |
commit | 72dd4d85bdd1f6da79dee405366311e6da96776b (patch) | |
tree | e3e0a0d6bb7bec06505965da4e845e12bbc63971 /src/timelog.h | |
parent | 64a9b42381c26baf24e58b40f50f0b253e551811 (diff) | |
parent | 96172669053bbba7263a370f109f70615049a0c6 (diff) | |
download | ledger-72dd4d85bdd1f6da79dee405366311e6da96776b.tar.gz ledger-72dd4d85bdd1f6da79dee405366311e6da96776b.tar.bz2 ledger-72dd4d85bdd1f6da79dee405366311e6da96776b.zip |
Merge branch 'release/v3.0.0-20120510'
Diffstat (limited to 'src/timelog.h')
-rw-r--r-- | src/timelog.h | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/src/timelog.h b/src/timelog.h index 857952ff..a902c084 100644 --- a/src/timelog.h +++ b/src/timelog.h @@ -56,6 +56,7 @@ class time_xact_t { public: datetime_t checkin; + bool completed; account_t * account; string desc; string note; @@ -66,16 +67,18 @@ public: } time_xact_t(const optional<position_t>& _position, const datetime_t& _checkin, - account_t * _account = NULL, - const string& _desc = "", - const string& _note = "") - : checkin(_checkin), account(_account), desc(_desc), note(_note), + const bool _completed = false, + account_t * _account = NULL, + const string& _desc = "", + const string& _note = "") + : checkin(_checkin), completed(_completed), account(_account), + desc(_desc), note(_note), position(_position ? *_position : position_t()) { TRACE_CTOR(time_xact_t, - "position_t, datetime_t, account_t *, string, string"); + "position_t, datetime_t, bool, account_t *, string, string"); } time_xact_t(const time_xact_t& xact) - : checkin(xact.checkin), account(xact.account), + : checkin(xact.checkin), completed(xact.completed), account(xact.account), desc(xact.desc), note(xact.note), position(xact.position) { TRACE_CTOR(time_xact_t, "copy"); } |