diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2020-10-20 10:40:21 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2020-10-20 13:25:20 +0200 |
commit | 1abfef23f6b21e073472463840a9979cf3f46712 (patch) | |
tree | 1e31c105073ab6e4bf56c32f6db9764068612e06 | |
parent | 556c13f39244b4eb75638cd8f4434167eadf0c98 (diff) |
shiboken2: Fix an assert crash in debug mode
Do not consider RValue-references as invalid types;
this causes an assert crash by 556c13f39244b4eb75638cd8f4434167eadf0c98.
They are filtered out later.
Change-Id: I6c477bb8319aa99ad73ff9a002ec11992a9ac538
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
-rw-r--r-- | sources/shiboken2/ApiExtractor/abstractmetalang.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/sources/shiboken2/ApiExtractor/abstractmetalang.cpp b/sources/shiboken2/ApiExtractor/abstractmetalang.cpp index baeab19fd..3bdac909c 100644 --- a/sources/shiboken2/ApiExtractor/abstractmetalang.cpp +++ b/sources/shiboken2/ApiExtractor/abstractmetalang.cpp @@ -312,9 +312,6 @@ QString AbstractMetaType::pythonSignature() const AbstractMetaType::TypeUsagePattern AbstractMetaType::determineUsagePattern() const { - if (m_referenceType == RValueReference) - return InvalidPattern; - if (m_typeEntry->isTemplateArgument()) return TemplateArgument; |