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.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/sources/pyside6/libpysideqml/pysideqmlattached.cpp b/sources/pyside6/libpysideqml/pysideqmlattached.cpp
index 295cb7595..d484257e2 100644
--- a/sources/pyside6/libpysideqml/pysideqmlattached.cpp
+++ b/sources/pyside6/libpysideqml/pysideqmlattached.cpp
@@ -14,7 +14,6 @@
#include <signature.h>
#include <sbkstring.h>
-#include <QtCore/QtGlobal>
#include <QtQml/qqml.h>
#include <algorithm>
@@ -173,10 +172,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;