summaryrefslogtreecommitdiff
path: root/src/post.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2012-03-28 03:02:31 -0500
committerJohn Wiegley <johnw@newartisans.com>2012-03-28 03:02:31 -0500
commit902ab72eb44296ff41a78fcda15a26a99ef87b8d (patch)
treedaca8f68eea6f55a7e03d9fe21e63c85d2a2afc8 /src/post.h
parent362fad5925ba4e828b80bd5a90aff825296e6ad0 (diff)
downloadfork-ledger-902ab72eb44296ff41a78fcda15a26a99ef87b8d.tar.gz
fork-ledger-902ab72eb44296ff41a78fcda15a26a99ef87b8d.tar.bz2
fork-ledger-902ab72eb44296ff41a78fcda15a26a99ef87b8d.zip
Forgot to copy two members in post_t's copy-ctor
Diffstat (limited to 'src/post.h')
-rw-r--r--src/post.h8
1 files changed, 4 insertions, 4 deletions
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<string>& _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<string>&");
}
@@ -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);