From 5cd59a471e2aa6adf0663a529465b1d107523a12 Mon Sep 17 00:00:00 2001 From: Dave Abrahams Date: Wed, 15 Nov 2000 17:30:45 +0000 Subject: [PATCH] Updated to use BoundFunction::create() optimization [SVN r8223] --- subclass.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subclass.cpp b/subclass.cpp index 9cd09429..2f01967c 100644 --- a/subclass.cpp +++ b/subclass.cpp @@ -343,7 +343,7 @@ PyObject* Instance::getattr(const char* name, bool use_special_function) } else { - return new BoundFunction(Ptr(this, Ptr::borrowed), class_attribute); + return BoundFunction::create(Ptr(this, Ptr::borrowed), class_attribute); } }