From 902ab72eb44296ff41a78fcda15a26a99ef87b8d Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Wed, 28 Mar 2012 03:02:31 -0500 Subject: Forgot to copy two members in post_t's copy-ctor --- src/post.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/post.h') diff --git a/src/post.h b/src/post.h index 76a89a33..e2d9499f 100644 --- a/src/post.h +++ b/src/post.h @@ -73,8 +73,7 @@ public: post_t(account_t * _account = NULL, flags_t _flags = ITEM_NORMAL) - : item_t(_flags), - xact(NULL), account(_account) + : item_t(_flags), xact(NULL), account(_account) { TRACE_CTOR(post_t, "account_t *, flags_t"); } @@ -82,8 +81,7 @@ public: const amount_t& _amount, flags_t _flags = ITEM_NORMAL, const optional& _note = none) - : item_t(_flags, _note), - xact(NULL), account(_account), amount(_amount) + : item_t(_flags, _note), xact(NULL), account(_account), amount(_amount) { TRACE_CTOR(post_t, "account_t *, const amount_t&, flags_t, const optional&"); } @@ -94,6 +92,8 @@ public: amount(post.amount), cost(post.cost), assigned_amount(post.assigned_amount), + checkin(post.checkin), + checkout(post.checkout), xdata_(post.xdata_) { copy_details(post); -- cgit v1.2.3