aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/libpysideqml/pysideqmlextended.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sources/pyside6/libpysideqml/pysideqmlextended.cpp')
-rw-r--r--sources/pyside6/libpysideqml/pysideqmlextended.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/sources/pyside6/libpysideqml/pysideqmlextended.cpp b/sources/pyside6/libpysideqml/pysideqmlextended.cpp
index e42fe20dd..014794854 100644
--- a/sources/pyside6/libpysideqml/pysideqmlextended.cpp
+++ b/sources/pyside6/libpysideqml/pysideqmlextended.cpp
@@ -92,7 +92,7 @@ static QObject *extensionFactory(QObject *o)
auto *pyObjType = Py_TYPE(pyObj);
const auto info = qmlTypeInfo(reinterpret_cast<PyObject *>(pyObjType));
- if (info.isNull() || info->extensionType == nullptr) {
+ if (!info || info->extensionType == nullptr) {
qWarning("QmlExtended: Cannot find extension of %s.", pyObjType->tp_name);
return nullptr;
}
@@ -128,10 +128,10 @@ void initQmlExtended(PyObject *module)
}
PySide::Qml::QmlExtensionInfo qmlExtendedInfo(PyObject *t,
- const QSharedPointer<QmlTypeInfo> &info)
+ const std::shared_ptr<QmlTypeInfo> &info)
{
PySide::Qml::QmlExtensionInfo result{nullptr, nullptr};
- if (!info.isNull() && info->extensionType) {
+ if (info && info->extensionType) {
result.metaObject = PySide::retrieveMetaObject(info->extensionType);
if (result.metaObject) {
result.factory = extensionFactory;