From f53e7180936a2bf4f5d19c36e0abead44712af88 Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Tue, 18 Sep 2018 10:20:25 +0200 Subject: shiboken: Use correct function to find the typesystem entry when parsing Change-Id: I8f8138e405eaac86cd3012b703c28ff77aa4e2c8 Reviewed-by: Christian Tismer --- sources/shiboken2/ApiExtractor/typesystem.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sources/shiboken2/ApiExtractor/typesystem.cpp') 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(m_database->findType(m_defaultPackage)); + TypeSystemTypeEntry *moduleEntry = + const_cast(m_database->findTypeSystemType(m_defaultPackage)); if (!moduleEntry) moduleEntry = new TypeSystemTypeEntry(m_defaultPackage, since); moduleEntry->setCodeGeneration(m_generate); -- cgit v1.2.3