summaryrefslogtreecommitdiff
path: root/binary.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2004-08-26 14:31:50 -0400
committerJohn Wiegley <johnw@newartisans.com>2004-08-26 14:31:50 -0400
commit942943323ea1cef85b08935c98fb84b378519d3e (patch)
tree2b22049e784a1eb3a1ac78a6ac408af9b4f66992 /binary.cc
parent5f30c790dbc4a3ff469eb350e98817edd38d5de8 (diff)
downloadfork-ledger-942943323ea1cef85b08935c98fb84b378519d3e.tar.gz
fork-ledger-942943323ea1cef85b08935c98fb84b378519d3e.tar.bz2
fork-ledger-942943323ea1cef85b08935c98fb84b378519d3e.zip
don't placement new() amount_t in binary.cc when it isn't necessary
Diffstat (limited to 'binary.cc')
-rw-r--r--binary.cc1
1 files changed, 0 insertions, 1 deletions
diff --git a/binary.cc b/binary.cc
index 0d71a11b..3d2f8edc 100644
--- a/binary.cc
+++ b/binary.cc
@@ -128,7 +128,6 @@ inline void read_binary_transaction(std::istream& in, transaction_t * xact,
xact->account = accounts[read_binary_number<account_t::ident_t>(in) - 1];
xact->account->add_transaction(xact);
- new ((amount_t *) &xact->amount) amount_t;
read_binary_amount(in, xact->amount);
if (read_binary_number<char>(in) == 1) {