diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2018-09-18 10:20:25 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2018-09-18 13:39:51 +0000 |
commit | f53e7180936a2bf4f5d19c36e0abead44712af88 (patch) | |
tree | f90c814130f94829376c62852c442b64fc24b8b8 /sources/shiboken2/ApiExtractor | |
parent | 334e3a596cff8c08de3c2fa5657a715dbc864d8b (diff) |
shiboken: Use correct function to find the typesystem entry when parsing
Change-Id: I8f8138e405eaac86cd3012b703c28ff77aa4e2c8
Reviewed-by: Christian Tismer <tismer@stackless.com>
Diffstat (limited to 'sources/shiboken2/ApiExtractor')
-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); |