diff options
author | Hugo Lima <hugo.lima@openbossa.org> | 2010-01-11 17:48:17 -0200 |
---|---|---|
committer | Hugo Lima <hugo.lima@openbossa.org> | 2010-01-13 13:55:02 -0200 |
commit | 1bfff6f2f2549dd3a4e068e5bd767f72d8c7bd8b (patch) | |
tree | f9fc2753fd512326e9cdd025bdb50327daf59248 /libshiboken/bindingmanager.h | |
parent | 9e7c52bbef25fb118452aacae4f8e05ca5c9cf9a (diff) |
Fix object initialization.
The C++ object instanciation was made in tp_init function instead of tp_new function. Now tp_new just
create a useless python object which will be filled in the tp_init function.
Reviewed by Marcelo Lira <marcelo.lira@openbossa.org>
Diffstat (limited to 'libshiboken/bindingmanager.h')
-rw-r--r-- | libshiboken/bindingmanager.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libshiboken/bindingmanager.h b/libshiboken/bindingmanager.h index 05e115412..ec5a936f4 100644 --- a/libshiboken/bindingmanager.h +++ b/libshiboken/bindingmanager.h @@ -49,7 +49,8 @@ public: static BindingManager& instance(); bool hasWrapper(const void *cptr); - void assignWrapper(PyObject* wrapper, const void* cptr); + + void registerWrapper(SbkBaseWrapper* pyobj); void releaseWrapper(PyObject* wrapper); PyObject* retrieveWrapper(const void* cptr); PyObject* getOverride(const void* cptr, const char* methodName); |