From a89915c271c9da86fc0e9ba89552c1678449d6c4 Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Mon, 13 Sep 2021 08:56:09 +0200 Subject: Remove SbkObjectType from the API Leave only a deprecated typedef. Complements a4311711eb89e3f9833a05edf3debdf7563a104f. Task-number: PYSIDE-535 Change-Id: Icab9e82e7bff99363c01e471db1c84ee8d6c0b6b Reviewed-by: Christian Tismer --- sources/pyside6/PySide6/QtQml/pysideqmlregistertype.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sources/pyside6/PySide6/QtQml/pysideqmlregistertype.cpp') diff --git a/sources/pyside6/PySide6/QtQml/pysideqmlregistertype.cpp b/sources/pyside6/PySide6/QtQml/pysideqmlregistertype.cpp index 817396b4b..82824c77a 100644 --- a/sources/pyside6/PySide6/QtQml/pysideqmlregistertype.cpp +++ b/sources/pyside6/PySide6/QtQml/pysideqmlregistertype.cpp @@ -128,7 +128,7 @@ int PySide::qmlRegisterType(PyObject *pyObj, const char *uri, int versionMajor, QQmlPrivate::StaticCastSelector::cast(); int objectSize = static_cast(PySide::getSizeOfQObject( - reinterpret_cast(pyObj))); + reinterpret_cast(pyObj))); type.objectSize = objectSize; type.create = creatable ? createInto : nullptr; type.noCreationReason = noCreationReason; @@ -247,7 +247,7 @@ int PySide::qmlRegisterSingletonType(PyObject *pyObj, const char *uri, int versi AutoDecRef retVal(PyObject_CallObject(callback, args)); - SbkObjectType *qjsvalueType = SbkPySide6_QtQmlTypes[SBK_QJSVALUE_IDX]; + PyTypeObject *qjsvalueType = SbkPySide6_QtQmlTypes[SBK_QJSVALUE_IDX]; // Make sure the callback returns something we can convert, else the entire application will crash. if (retVal.isNull() || -- cgit v1.2.3