summaryrefslogtreecommitdiff
path: root/ofx.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ofx.cc')
-rw-r--r--ofx.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/ofx.cc b/ofx.cc
index 29f33cf9..f0bce1f2 100644
--- a/ofx.cc
+++ b/ofx.cc
@@ -76,12 +76,11 @@ int ofx_proc_transaction_cb(struct OfxTransactionData data,
if (data.unitprice_valid && data.unitprice != 1.0) {
std::ostringstream cstream;
- stream << - data.unitprice;
- xact->cost = new amount_t(stream.str() + " " + default_commodity->base_symbol());
+ stream << - data.unitprice << " " << default_commodity->base_symbol();
+ xact->cost = new amount_t(stream.str());
}
- DEBUG_("ledger.ofx.parse", "xact " << xact->amount
- << " from " << *xact->account);
+ DEBUG_("ofx.parse", "xact " << xact->amount << " from " << *xact->account);
if (data.date_initiated_valid)
entry->_date = data.date_initiated;