diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2018-09-06 15:45:19 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2018-09-06 13:56:59 +0000 |
commit | eadb38bb4ba150aa7c2aed3403ae86283af09d87 (patch) | |
tree | 1e96c08e95325b178b7257f99ddd00ad80f6265d | |
parent | 534372a13e4d5d8eb0d6f47667562c810118849a (diff) |
shiboken: Fix handling of dropped type entries
When parsing the typesystem XML file, decrement variable containing
the depth of dropped entries in Handler::endElement().
Otherwise, when dropping a type like
<object-type name="QDtls" since="5.12">
<enum-type name="HandshakeState"/>
</object-type>
all subsequent entries would be droppped.
Change-Id: I640a916e8c8dbddcaeaebc3859300cc2a0eb1b0c
Reviewed-by: Christian Tismer <tismer@stackless.com>
-rw-r--r-- | sources/shiboken2/ApiExtractor/typesystem.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/shiboken2/ApiExtractor/typesystem.cpp b/sources/shiboken2/ApiExtractor/typesystem.cpp index baaec6d30..8e0e4437a 100644 --- a/sources/shiboken2/ApiExtractor/typesystem.cpp +++ b/sources/shiboken2/ApiExtractor/typesystem.cpp @@ -301,7 +301,7 @@ bool Handler::endElement(const QStringRef &localName) m_currentDroppedEntry = 0; m_currentDroppedEntryDepth = 0; } else { - ++m_currentDroppedEntryDepth; + --m_currentDroppedEntryDepth; } return true; } |