aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sources/shiboken6/ApiExtractor/abstractmetatype.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/shiboken6/ApiExtractor/abstractmetatype.cpp b/sources/shiboken6/ApiExtractor/abstractmetatype.cpp
index 8a2a83c94..383b052be 100644
--- a/sources/shiboken6/ApiExtractor/abstractmetatype.cpp
+++ b/sources/shiboken6/ApiExtractor/abstractmetatype.cpp
@@ -968,9 +968,9 @@ AbstractMetaType::fromString(const QString &typeSignatureIn, QString *errorMessa
errorMessage->prepend(msgCannotBuildMetaType(typeSignature));
return {};
}
- it = cache.insert(typeSignature, metaType.value());
if (typeSignature != typeSignatureIn)
cache.insert(typeSignatureIn, metaType.value());
+ it = cache.insert(typeSignature, metaType.value());
}
return it.value();
}