aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/libpysideqml/pysideqmltypeinfo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sources/pyside6/libpysideqml/pysideqmltypeinfo.cpp')
-rw-r--r--sources/pyside6/libpysideqml/pysideqmltypeinfo.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/sources/pyside6/libpysideqml/pysideqmltypeinfo.cpp b/sources/pyside6/libpysideqml/pysideqmltypeinfo.cpp
index 31abedd8a..f369f7400 100644
--- a/sources/pyside6/libpysideqml/pysideqmltypeinfo.cpp
+++ b/sources/pyside6/libpysideqml/pysideqmltypeinfo.cpp
@@ -19,7 +19,7 @@ QmlTypeInfoPtr ensureQmlTypeInfo(const PyObject *o)
auto *hash = qmlTypeInfoHashStatic();
auto it = hash->find(o);
if (it == hash->end())
- it = hash->insert(o, QmlTypeInfoPtr(new QmlTypeInfo));
+ it = hash->insert(o, std::make_shared<QmlTypeInfo>());
return it.value();
}
@@ -42,8 +42,6 @@ QDebug operator<<(QDebug d, const QmlTypeInfo &i)
d.noquote();
d.nospace();
d << "QmlTypeInfo(" << i.flags;
- if (!i.noCreationReason.empty())
- d << ", noCreationReason=\"" << i.noCreationReason.c_str() << '"';
if (i.foreignType)
d << ", foreignType=" << i.foreignType->tp_name;
if (i.attachedType)