2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-20 16:52:15 +00:00

reference<> => handle<>

[SVN r14136]
This commit is contained in:
Dave Abrahams
2002-06-12 21:59:17 +00:00
parent 0d58869d6e
commit 366ee6d24b
36 changed files with 1264 additions and 293 deletions

View File

@@ -149,14 +149,14 @@ namespace
function* not_implemented_function()
{
static function* result = new function(py_function(&not_implemented_impl), 2, 3);
static ref keeper(result);
static handle<> keeper(result);
return result;
}
}
void function::add_to_namespace(
ref const& name_space, char const* name_, ref const& attribute)
handle<> const& name_space, char const* name_, handle<> const& attribute)
{
string const name(name_);
PyObject* const ns = name_space.get();
@@ -175,7 +175,7 @@ void function::add_to_namespace(
if (dict == 0)
throw_error_already_set();
ref existing(PyObject_GetItem(dict, name.get()), ref::null_ok);
handle<> existing( allow_null(PyObject_GetItem(dict, name.get())) );
if (existing.get())
{