diff options
author | John Wiegley <johnw@newartisans.com> | 2007-05-07 10:25:15 +0000 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-04-13 03:38:39 -0400 |
commit | a07e20c14e5ba3597a855276ad9a195343aee42f (patch) | |
tree | 2148a9a8e3038993cca6865a025a582e95f9caac /src/amount.cc | |
parent | 8aada79971b772fda92131053fa03021cfbc625a (diff) | |
download | ledger-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.cc | 6 |
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); |