From 2d8512af88eab26176089e53916f309f2d3b3be4 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Wed, 16 May 2007 10:46:05 +0000 Subject: Changed all uses of scope_t * to scope_t& --- src/pyinterp.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/pyinterp.h') diff --git a/src/pyinterp.h b/src/pyinterp.h index 2258c6c0..037c70e1 100644 --- a/src/pyinterp.h +++ b/src/pyinterp.h @@ -46,7 +46,7 @@ class python_interpreter_t : public xml::xpath_t::scope_t public: boost::python::dict nspace; - python_interpreter_t(xml::xpath_t::scope_t * parent); + python_interpreter_t(xml::xpath_t::scope_t& parent); virtual ~python_interpreter_t() { Py_Finalize(); @@ -76,7 +76,7 @@ class python_interpreter_t : public xml::xpath_t::scope_t public: functor_t(const string& name, boost::python::object _func) : func(_func) {} virtual ~functor_t() {} - virtual value_t operator()(xml::xpath_t::scope_t * locals); + virtual value_t operator()(xml::xpath_t::scope_t& locals); }; virtual void define(const string& name, xml::xpath_t::ptr_op_t def) { @@ -94,7 +94,7 @@ class python_interpreter_t : public xml::xpath_t::scope_t class lambda_t : public functor_t { public: lambda_t(boost::python::object code) : functor_t("", code) {} - virtual value_t operator()(xml::xpath_t::scope_t * locals); + virtual value_t operator()(xml::xpath_t::scope_t& locals); }; }; -- cgit v1.2.3