summaryrefslogtreecommitdiff
path: root/src/value.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/value.cc
parent8aada79971b772fda92131053fa03021cfbc625a (diff)
downloadfork-ledger-a07e20c14e5ba3597a855276ad9a195343aee42f.tar.gz
fork-ledger-a07e20c14e5ba3597a855276ad9a195343aee42f.tar.bz2
fork-ledger-a07e20c14e5ba3597a855276ad9a195343aee42f.zip
Changed write methods to print.
Diffstat (limited to 'src/value.cc')
-rw-r--r--src/value.cc10
1 files changed, 5 insertions, 5 deletions
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<amount_t>& 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);