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/balance.h | |
parent | 8aada79971b772fda92131053fa03021cfbc625a (diff) | |
download | fork-ledger-a07e20c14e5ba3597a855276ad9a195343aee42f.tar.gz fork-ledger-a07e20c14e5ba3597a855276ad9a195343aee42f.tar.bz2 fork-ledger-a07e20c14e5ba3597a855276ad9a195343aee42f.zip |
Changed write methods to print.
Diffstat (limited to 'src/balance.h')
-rw-r--r-- | src/balance.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/balance.h b/src/balance.h index 769d8d83..bbb054ee 100644 --- a/src/balance.h +++ b/src/balance.h @@ -159,7 +159,7 @@ public: const bool keep_date = amount_t::keep_date, const bool keep_tag = amount_t::keep_tag) const; - void write(std::ostream& out, const int first_width, + void print(std::ostream& out, const int first_width, const int latter_width = -1) const; balance_t abs() const { @@ -216,7 +216,7 @@ public: }; inline std::ostream& operator<<(std::ostream& out, const balance_t& bal) { - bal.write(out, 12); + bal.print(out, 12); return out; } @@ -351,9 +351,9 @@ public: return quantity.strip_annotations(keep_price, keep_date, keep_tag); } - void write(std::ostream& out, const int first_width, + void print(std::ostream& out, const int first_width, const int latter_width = -1) const { - quantity.write(out, first_width, latter_width); + quantity.print(out, first_width, latter_width); } balance_pair_t& add(const amount_t& amt, @@ -404,7 +404,7 @@ public: inline std::ostream& operator<<(std::ostream& out, const balance_pair_t& bal_pair) { - bal_pair.quantity.write(out, 12); + bal_pair.quantity.print(out, 12); return out; } |