diff options
author | Hugo Lima <hugo.lima@openbossa.org> | 2010-02-25 20:22:00 -0300 |
---|---|---|
committer | Hugo Lima <hugo.lima@openbossa.org> | 2010-02-26 14:28:36 -0300 |
commit | 67de28cf5c65cc5137d18502caa2f0ddcd69c2af (patch) | |
tree | b28f26df257c84072f051d5aae67b08bde53abe4 /libshiboken/conversions.h | |
parent | e0c08ae6c367335a1152107e1b1e23e59e1bc3a5 (diff) |
Rename SbkCreateWrapper to createWrapper, to follow our fuction naming conventions.
Reviewed by Marcelo Lira <marcelo.lira@openbossa.org>
Diffstat (limited to 'libshiboken/conversions.h')
-rw-r--r-- | libshiboken/conversions.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libshiboken/conversions.h b/libshiboken/conversions.h index f596ea6c8..5b559308e 100644 --- a/libshiboken/conversions.h +++ b/libshiboken/conversions.h @@ -111,7 +111,7 @@ struct CppObjectCopier<T, true> * Convenience template to create wrappers using the proper Python type for a given C++ class instance. */ template<typename T> -inline PyObject* SbkCreateWrapper(const T* cppobj, bool hasOwnership = false, bool isExactType = false) +inline PyObject* createWrapper(const T* cppobj, bool hasOwnership = false, bool isExactType = false) { return SbkBaseWrapper_New(reinterpret_cast<SbkBaseWrapperType*>(SbkType<T>()), cppobj, hasOwnership, isExactType); @@ -127,7 +127,7 @@ struct ConverterBase static inline PyObject* toPython(void* cppobj) { return toPython(*reinterpret_cast<T*>(cppobj)); } static inline PyObject* toPython(const T& cppobj) { - PyObject* obj = SbkCreateWrapper<T>(CppObjectCopier<T>::copy(cppobj), true, true); + PyObject* obj = createWrapper<T>(CppObjectCopier<T>::copy(cppobj), true, true); SbkBaseWrapper_setContainsCppWrapper(obj, SbkTypeInfo<T>::isCppWrapper); return obj; } @@ -151,7 +151,7 @@ struct ConverterBase<T*> : ConverterBase<T> if (pyobj) Py_INCREF(pyobj); else - pyobj = SbkCreateWrapper<T>(cppobj); + pyobj = createWrapper<T>(cppobj); return pyobj; } static T* toCpp(PyObject* pyobj) @@ -180,7 +180,7 @@ struct Converter<T*> : Converter<T> if (pyobj) Py_INCREF(pyobj); else - pyobj = SbkCreateWrapper<T>(cppobj); + pyobj = createWrapper<T>(cppobj); return pyobj; } static T* toCpp(PyObject* pyobj) |