diff options
author | Hugo Parente Lima <hugo.pl@gmail.com> | 2010-11-09 16:47:12 -0200 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-08 16:08:56 -0300 |
commit | d63972b6ce03b9321c4192626451c33694b29339 (patch) | |
tree | 1a7c17af3b14a35d7bfdc9d3a54ff254b14c4654 /libshiboken/conversions.h | |
parent | c3bfbea370fcb19075cd5761ae22691696eaafcd (diff) |
Moved Shiboken::SbkBaseWrapper outside Shiboken namespace and added a d-pointer to it.
Diffstat (limited to 'libshiboken/conversions.h')
-rw-r--r-- | libshiboken/conversions.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libshiboken/conversions.h b/libshiboken/conversions.h index 67e627926..b077e2f28 100644 --- a/libshiboken/conversions.h +++ b/libshiboken/conversions.h @@ -223,8 +223,8 @@ struct ValueTypeConverter static inline PyObject* toPython(void* cppobj) { return toPython(*reinterpret_cast<T*>(cppobj)); } static inline PyObject* toPython(const T& cppobj) { - PyObject* obj = createWrapper<T>(CppObjectCopier<T>::copy(cppobj), true, true); - SbkBaseWrapper_setContainsCppWrapper(obj, SbkTypeInfo<T>::isCppWrapper); + PyObject* obj = createWrapper<T>(new T(cppobj), true, true); +// SbkBaseWrapper_setContainsCppWrapper(obj, SbkTypeInfo<T>::isCppWrapper); return obj; } // Classes with implicit conversions are expected to reimplement 'toCpp' to build T from |