aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/libpysideqml/pysideqmlattached.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sources/pyside6/libpysideqml/pysideqmlattached.cpp')
-rw-r--r--sources/pyside6/libpysideqml/pysideqmlattached.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/sources/pyside6/libpysideqml/pysideqmlattached.cpp b/sources/pyside6/libpysideqml/pysideqmlattached.cpp
index 295cb7595..930358d77 100644
--- a/sources/pyside6/libpysideqml/pysideqmlattached.cpp
+++ b/sources/pyside6/libpysideqml/pysideqmlattached.cpp
@@ -173,10 +173,10 @@ void initQmlAttached(PyObject *module)
}
PySide::Qml::QmlExtensionInfo qmlAttachedInfo(PyTypeObject *t,
- const QSharedPointer<QmlTypeInfo> &info)
+ const std::shared_ptr<QmlTypeInfo> &info)
{
PySide::Qml::QmlExtensionInfo result{nullptr, nullptr};
- if (info.isNull() || info->attachedType == nullptr)
+ if (!info || info->attachedType == nullptr)
return result;
auto *name = reinterpret_cast<PyTypeObject *>(t)->tp_name;