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

bug fixes

[SVN r14623]
This commit is contained in:
Dave Abrahams
2002-07-27 05:50:10 +00:00
parent 19036c14f5
commit 6907df1457
3 changed files with 13 additions and 21 deletions

View File

@@ -299,8 +299,8 @@ namespace objects
void class_base::add_property(char const* name, object const& fget)
{
object property(
python::detail::new_reference(
PyObject_CallFunction((PyObject*)&PyProperty_Type, "O", fget.ptr())));
(python::detail::new_reference)
PyObject_CallFunction((PyObject*)&PyProperty_Type, "O", fget.ptr()));
this->setattr(name, property);
}
@@ -308,8 +308,8 @@ namespace objects
void class_base::add_property(char const* name, object const& fget, object const& fset)
{
object property(
python::detail::new_reference(
PyObject_CallFunction((PyObject*)&PyProperty_Type, "OO", fget.ptr(), fset.ptr())));
(python::detail::new_reference)
PyObject_CallFunction((PyObject*)&PyProperty_Type, "OO", fget.ptr(), fset.ptr()));
this->setattr(name, property);
}