From 535c799dbbd9f6eb89560caf409ae6bd2d8122b1 Mon Sep 17 00:00:00 2001 From: Hugo Parente Lima Date: Fri, 19 Nov 2010 18:01:23 -0200 Subject: Namespace Shiboken::Wrapper renamed to Shiboken::Object. --- libshiboken/conversions.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'libshiboken/conversions.h') diff --git a/libshiboken/conversions.h b/libshiboken/conversions.h index 5d0048fe8..a49ec34db 100644 --- a/libshiboken/conversions.h +++ b/libshiboken/conversions.h @@ -113,7 +113,7 @@ inline PyObject* createWrapper(const T* cppobj, bool hasOwnership = false, bool const char* typeName = 0; if (!isExactType) typeName = typeid(*const_cast(cppobj)).name(); - return Wrapper::newObject(reinterpret_cast(SbkType()), + return Object::newObject(reinterpret_cast(SbkType()), const_cast(cppobj), hasOwnership, isExactType, typeName); } @@ -150,7 +150,7 @@ struct Converter static T* toCpp(PyObject* pyobj) { if (PyObject_TypeCheck(pyobj, SbkType())) - return (T*) Wrapper::cppPointer(reinterpret_cast(pyobj), SbkType()); + return (T*) Object::cppPointer(reinterpret_cast(pyobj), SbkType()); else if (Converter::isConvertible(pyobj)) return CppObjectCopier::copy(Converter::toCpp(pyobj)); else if (pyobj == Py_None) @@ -239,7 +239,7 @@ struct ValueTypeConverter } assert(false); } - return *reinterpret_cast(Wrapper::cppPointer(reinterpret_cast(pyobj), SbkType())); + return *reinterpret_cast(Object::cppPointer(reinterpret_cast(pyobj), SbkType())); } }; @@ -274,7 +274,7 @@ struct ObjectTypeConverter SbkObjectType* shiboType = reinterpret_cast(pyobj->ob_type); if (ObjectType::hasCast(shiboType)) return reinterpret_cast(ObjectType::cast(shiboType, reinterpret_cast(pyobj), SbkType())); - return (T*) Wrapper::cppPointer(reinterpret_cast(pyobj), SbkType()); + return (T*) Object::cppPointer(reinterpret_cast(pyobj), SbkType()); } }; @@ -560,7 +560,7 @@ struct StdListConverter // binded types implementing sequence protocol, otherwise this will // cause a mess like QBitArray being accepted by someone expecting a // QStringList. - if ((SbkType() && Wrapper::checkType(pyObj)) || !PySequence_Check(pyObj)) + if ((SbkType() && Object::checkType(pyObj)) || !PySequence_Check(pyObj)) return false; for (int i = 0, max = PySequence_Length(pyObj); i < max; ++i) { AutoDecRef item(PySequence_GetItem(pyObj, i)); @@ -583,7 +583,7 @@ struct StdListConverter static StdList toCpp(PyObject* pyobj) { if (PyObject_TypeCheck(pyobj, SbkType())) - return *reinterpret_cast(Wrapper::cppPointer(reinterpret_cast(pyobj), SbkType())); + return *reinterpret_cast(Object::cppPointer(reinterpret_cast(pyobj), SbkType())); StdList result; for (int i = 0; i < PySequence_Size(pyobj); i++) { @@ -606,7 +606,7 @@ struct StdPairConverter { if (PyObject_TypeCheck(pyObj, SbkType())) return true; - if ((SbkType() && Wrapper::checkType(pyObj)) || !PySequence_Check(pyObj) || PySequence_Length(pyObj) != 2) + if ((SbkType() && Object::checkType(pyObj)) || !PySequence_Check(pyObj) || PySequence_Length(pyObj) != 2) return false; AutoDecRef item1(PySequence_GetItem(pyObj, 0)); @@ -651,7 +651,7 @@ struct StdMapConverter { if (PyObject_TypeCheck(pyObj, SbkType())) return true; - if ((SbkType() && Wrapper::checkType(pyObj)) || !PyDict_Check(pyObj)) + if ((SbkType() && Object::checkType(pyObj)) || !PyDict_Check(pyObj)) return false; PyObject* key; -- cgit v1.2.3