diff options
Diffstat (limited to 'sources/shiboken6/ApiExtractor/typedatabase.cpp')
-rw-r--r-- | sources/shiboken6/ApiExtractor/typedatabase.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/sources/shiboken6/ApiExtractor/typedatabase.cpp b/sources/shiboken6/ApiExtractor/typedatabase.cpp index 596af53ca..6b63d2052 100644 --- a/sources/shiboken6/ApiExtractor/typedatabase.cpp +++ b/sources/shiboken6/ApiExtractor/typedatabase.cpp @@ -59,8 +59,8 @@ Q_GLOBAL_STATIC(ApiVersions, apiVersions) TypeDatabase::TypeDatabase() { - addType(new VoidTypeEntry()); - addType(new VarargsTypeEntry()); + addBuiltInType(new VoidTypeEntry()); + addBuiltInType(new VarargsTypeEntry()); } TypeDatabase::~TypeDatabase() = default; @@ -939,6 +939,12 @@ void TypeDatabase::formatDebug(QDebug &d) const d << ')'; } +void TypeDatabase::addBuiltInType(TypeEntry *e) +{ + e->setBuiltIn(true); + addType(e); +} + QDebug operator<<(QDebug d, const TypeDatabase &db) { QDebugStateSaver saver(d); |