diff options
Diffstat (limited to 'sources/shiboken6/ApiExtractor/abstractmetalang.h')
-rw-r--r-- | sources/shiboken6/ApiExtractor/abstractmetalang.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sources/shiboken6/ApiExtractor/abstractmetalang.h b/sources/shiboken6/ApiExtractor/abstractmetalang.h index 5bd291664..d5071a283 100644 --- a/sources/shiboken6/ApiExtractor/abstractmetalang.h +++ b/sources/shiboken6/ApiExtractor/abstractmetalang.h @@ -372,7 +372,10 @@ void AbstractMetaClass::invisibleNamespaceRecursion(Function f) const bool inheritsFrom(const AbstractMetaClassCPtr &c, const AbstractMetaClassCPtr &other); bool inheritsFrom(const AbstractMetaClassCPtr &c, const QString &name); -inline bool isQObject(const AbstractMetaClassCPtr &c) { return inheritsFrom(c, u"QObject"_qs); } +inline bool isQObject(const AbstractMetaClassCPtr &c) +{ + return inheritsFrom(c, QStringLiteral("QObject")); +} AbstractMetaClassCPtr findBaseClass(const AbstractMetaClassCPtr &c, const QString &qualifiedName); |