summaryrefslogtreecommitdiff
path: root/qif.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2007-04-19 20:31:46 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 03:38:28 -0400
commit0a6b5726ec3bf402a953ea8a03b98ecbf4b90b0c (patch)
tree0a2c2aca7100d045f491b03f0a5bda92378d3ef9 /qif.cc
parent176b3044e355398a0c31e0c42a3cd7b8a2e3f3e5 (diff)
downloadfork-ledger-0a6b5726ec3bf402a953ea8a03b98ecbf4b90b0c.tar.gz
fork-ledger-0a6b5726ec3bf402a953ea8a03b98ecbf4b90b0c.tar.bz2
fork-ledger-0a6b5726ec3bf402a953ea8a03b98ecbf4b90b0c.zip
Made the amount/balance/value interface a bit more rational; added
back a useless version of the register command (just to prove the command sequence); and added smart XML semantics to the XPath implementation so that nodes can be coerced to values.
Diffstat (limited to 'qif.cc')
-rw-r--r--qif.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/qif.cc b/qif.cc
index 393d1939..75c927f6 100644
--- a/qif.cc
+++ b/qif.cc
@@ -126,7 +126,7 @@ unsigned int qif_parser_t::parse(std::istream& in,
if (c == '$') {
saw_splits = true;
- xact->amount.negate();
+ xact->amount.in_place_negate();
} else {
total = xact;
}
@@ -202,7 +202,7 @@ unsigned int qif_parser_t::parse(std::istream& in,
if (total && saw_category) {
if (! saw_splits)
- total->amount.negate(); // negate, to show correct flow
+ total->amount.in_place_negate(); // negate, to show correct flow
else
total->account = other;
}