summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-16 04:00:01 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-16 04:00:01 -0400
commitaa69b273deda6cc29701fe9a4adf66abe8773cda (patch)
tree9e999fb5819e3012a86734e435f1ce7bfa47f71e
parent4de2f50818a9d693fe5a7cb4f431909341b2d7b8 (diff)
downloadfork-ledger-aa69b273deda6cc29701fe9a4adf66abe8773cda.tar.gz
fork-ledger-aa69b273deda6cc29701fe9a4adf66abe8773cda.tar.bz2
fork-ledger-aa69b273deda6cc29701fe9a4adf66abe8773cda.zip
Changed some value_t method names
- simplify -> simplified - cast -> casted This is to differentiate them from in_place_cast and in_place_simplify.
-rw-r--r--python/py_value.cc4
-rw-r--r--src/value.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/python/py_value.cc b/python/py_value.cc
index c94475ec..79b367a1 100644
--- a/python/py_value.cc
+++ b/python/py_value.cc
@@ -237,10 +237,10 @@ void export_value()
.def("__str__", py_dump_relaxed)
.def("__repr__", py_dump)
- .def("cast", &value_t::cast)
+ .def("casted", &value_t::casted)
.def("in_place_cast", &value_t::in_place_cast)
- .def("simplify", &value_t::simplify)
+ .def("simplified", &value_t::simplified)
.def("in_place_simplify", &value_t::in_place_simplify)
// jww (2009-02-07): Allow annotating, and retrieving annotations
diff --git a/src/value.h b/src/value.h
index c24e8257..299afa82 100644
--- a/src/value.h
+++ b/src/value.h
@@ -731,14 +731,14 @@ public:
* in_place_cast
* in_place_simplify
*/
- value_t cast(type_t cast_type) const {
+ value_t casted(type_t cast_type) const {
value_t temp(*this);
temp.in_place_cast(cast_type);
return temp;
}
void in_place_cast(type_t cast_type);
- value_t simplify() const {
+ value_t simplified() const {
value_t temp = *this;
temp.in_place_simplify();
return temp;