diff options
-rw-r--r-- | sources/shiboken2/ApiExtractor/typesystem.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sources/shiboken2/ApiExtractor/typesystem.cpp b/sources/shiboken2/ApiExtractor/typesystem.cpp index 2c73de297..20df181b6 100644 --- a/sources/shiboken2/ApiExtractor/typesystem.cpp +++ b/sources/shiboken2/ApiExtractor/typesystem.cpp @@ -1422,8 +1422,8 @@ TypeSystemTypeEntry *Handler::parseRootElement(const QXmlStreamReader &, m_defaultSuperclass = attributes->takeAt(i).value().toString(); } - TypeSystemTypeEntry* moduleEntry = - reinterpret_cast<TypeSystemTypeEntry*>(m_database->findType(m_defaultPackage)); + TypeSystemTypeEntry *moduleEntry = + const_cast<TypeSystemTypeEntry *>(m_database->findTypeSystemType(m_defaultPackage)); if (!moduleEntry) moduleEntry = new TypeSystemTypeEntry(m_defaultPackage, since); moduleEntry->setCodeGeneration(m_generate); |