diff options
author | John Wiegley <johnw@newartisans.com> | 2007-06-08 04:13:20 +0000 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-04-13 03:39:08 -0400 |
commit | b7b4c079266e0e9ef18dbe006a4a135643cf890b (patch) | |
tree | c1196c1e39dc97024f9b306d564f7b1e0dac84d3 /src/data/compile.cc | |
parent | ec850814fdd6424db791ef79cab82eb2a2e5afbe (diff) | |
download | fork-ledger-b7b4c079266e0e9ef18dbe006a4a135643cf890b.tar.gz fork-ledger-b7b4c079266e0e9ef18dbe006a4a135643cf890b.tar.bz2 fork-ledger-b7b4c079266e0e9ef18dbe006a4a135643cf890b.zip |
r384@user1022: johnw | 2007-06-08 00:08:53 -0400
Corrected several minor warnings
Diffstat (limited to 'src/data/compile.cc')
-rw-r--r-- | src/data/compile.cc | 23 |
1 files changed, 7 insertions, 16 deletions
diff --git a/src/data/compile.cc b/src/data/compile.cc index 0b924418..07ce9394 100644 --- a/src/data/compile.cc +++ b/src/data/compile.cc @@ -130,20 +130,16 @@ void transaction_node_t::parse_amount_expr(xpath_t::scope_t& scope, // Parse the optional cost (@ PER-UNIT-COST, @@ TOTAL-COST) - unsigned int linenum = -1; - if (in.good() && ! in.eof()) { char c = peek_next_nonws(in); if (c == '@') { - DEBUG("ledger.textual.parse", "line " << linenum << ": " << - "Found a price indicator"); + DEBUG("ledger.textual.parse", "Found a price indicator"); bool per_unit = true; in.get(c); if (in.peek() == '@') { in.get(c); per_unit = false; - DEBUG("ledger.textual.parse", "line " << linenum << ": " << - "And it's for a total price"); + DEBUG("ledger.textual.parse", "And it's for a total price"); } if (in.good() && ! in.eof()) { @@ -179,22 +175,17 @@ void transaction_node_t::parse_amount_expr(xpath_t::scope_t& scope, transaction->entry->code)); } - DEBUG("ledger.textual.parse", "line " << linenum << ": " << - "Total cost is " << cost); - DEBUG("ledger.textual.parse", "line " << linenum << ": " << - "Per-unit cost is " << per_unit_cost); - DEBUG("ledger.textual.parse", "line " << linenum << ": " << - "Annotated amount is " << base_amount); - DEBUG("ledger.textual.parse", "line " << linenum << ": " << - "Bare amount is " << base_amount.number()); + DEBUG("ledger.textual.parse", "Total cost is " << cost); + DEBUG("ledger.textual.parse", "Per-unit cost is " << per_unit_cost); + DEBUG("ledger.textual.parse", "Annotated amount is " << base_amount); + DEBUG("ledger.textual.parse", "Bare amount is " << base_amount.number()); } } } amount->in_place_reduce(); - DEBUG("ledger.textual.parse", "line " << linenum << ": " << - "Reduced amount is " << *amount); + DEBUG("ledger.textual.parse", "Reduced amount is " << *amount); } void transaction_node_t::compile(xpath_t::scope_t& scope) |