summaryrefslogtreecommitdiff
path: root/src/amount.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2007-05-07 10:25:15 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 03:38:39 -0400
commita07e20c14e5ba3597a855276ad9a195343aee42f (patch)
tree2148a9a8e3038993cca6865a025a582e95f9caac /src/amount.cc
parent8aada79971b772fda92131053fa03021cfbc625a (diff)
downloadledger-a07e20c14e5ba3597a855276ad9a195343aee42f.tar.gz
ledger-a07e20c14e5ba3597a855276ad9a195343aee42f.tar.bz2
ledger-a07e20c14e5ba3597a855276ad9a195343aee42f.zip
Changed write methods to print.
Diffstat (limited to 'src/amount.cc')
-rw-r--r--src/amount.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/amount.cc b/src/amount.cc
index 88717e24..36c8fec9 100644
--- a/src/amount.cc
+++ b/src/amount.cc
@@ -1176,8 +1176,7 @@ void amount_t::print(std::ostream& _out, bool omit_commodity,
}
if (! omit_commodity && ! comm.has_flags(COMMODITY_STYLE_SUFFIXED)) {
- comm.write(out);
-
+ comm.print(out);
if (comm.has_flags(COMMODITY_STYLE_SEPARATED))
out << " ";
}
@@ -1262,8 +1261,7 @@ void amount_t::print(std::ostream& _out, bool omit_commodity,
if (! omit_commodity && comm.has_flags(COMMODITY_STYLE_SUFFIXED)) {
if (comm.has_flags(COMMODITY_STYLE_SEPARATED))
out << " ";
-
- comm.write(out);
+ comm.print(out);
}
mpz_clear(quotient);