From aa69b273deda6cc29701fe9a4adf66abe8773cda Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Mon, 16 Feb 2009 04:00:01 -0400 Subject: Changed some value_t method names - simplify -> simplified - cast -> casted This is to differentiate them from in_place_cast and in_place_simplify. --- python/py_value.cc | 4 ++-- src/value.h | 4 ++-- 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; -- cgit v1.2.3