From a07e20c14e5ba3597a855276ad9a195343aee42f Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Mon, 7 May 2007 10:25:15 +0000 Subject: Changed write methods to print. --- src/value.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/value.cc') diff --git a/src/value.cc b/src/value.cc index 2c9f307a..4473878d 100644 --- a/src/value.cc +++ b/src/value.cc @@ -2215,7 +2215,7 @@ value_t& value_t::add(const amount_t& amount, const optional& tcost) return *this; } -void value_t::write(std::ostream& out, const int first_width, +void value_t::print(std::ostream& out, const int first_width, const int latter_width) const { switch (type) { @@ -2229,7 +2229,7 @@ void value_t::write(std::ostream& out, const int first_width, break; case XML_NODE: - (*(xml::node_t **) data)->write(out); + (*(xml::node_t **) data)->print(out); break; case SEQUENCE: @@ -2237,10 +2237,10 @@ void value_t::write(std::ostream& out, const int first_width, throw_(value_error, "Cannot write out a sequence"); case BALANCE: - ((balance_t *) data)->write(out, first_width, latter_width); + ((balance_t *) data)->print(out, first_width, latter_width); break; case BALANCE_PAIR: - ((balance_pair_t *) data)->write(out, first_width, latter_width); + ((balance_pair_t *) data)->print(out, first_width, latter_width); break; } } @@ -2344,7 +2344,7 @@ void value_context::describe(std::ostream& out) const throw() if (! ptr) ptr = &((balance_pair_t *) bal->data)->quantity; - ptr->write(out, 20); + ptr->print(out, 20); break; default: assert(0); -- cgit v1.2.3