diff options
| author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2023-05-09 08:16:59 +0200 |
|---|---|---|
| committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2023-05-11 11:46:04 +0200 |
| commit | 3965de109132cafcb4f5c23fdc1c24a7baec9574 (patch) | |
| tree | ddbc106f4acbef521628ed5c8eceff2a7f75ebb3 /sources/shiboken6/ApiExtractor/messages.cpp | |
| parent | c8a2f15dc74c5b3a0cbf3f8c1891f6961578d8b2 (diff) | |
shiboken6: Remove check for variable type in conversion snippets
There might be subtle differences for example spaces in nested
template types (QList<QSharedPointer<T> >) which are now obsolete
that trigger the error. Remove the check as mostly auto is used
today and it would result in a compiler error anyways.
Pick-to: 6.5
Task-number: PYSIDE-2316
Change-Id: I28251549d1d103fa3e2d0f9eed405852b2195d8a
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'sources/shiboken6/ApiExtractor/messages.cpp')
| -rw-r--r-- | sources/shiboken6/ApiExtractor/messages.cpp | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/sources/shiboken6/ApiExtractor/messages.cpp b/sources/shiboken6/ApiExtractor/messages.cpp index bcebf4630..c54ea7d7e 100644 --- a/sources/shiboken6/ApiExtractor/messages.cpp +++ b/sources/shiboken6/ApiExtractor/messages.cpp @@ -663,23 +663,6 @@ QString msgCannotUseEnumAsInt(const QString &name) "Compilation errors may occur when used as a function argument."_s; } -QString msgConversionTypesDiffer(const QString &varType, const QString &conversionType) -{ - QString result; - QTextStream str(&result); - str << "Types of receiver variable ('" << varType - << "') and %%CONVERTTOCPP type system variable ('" << conversionType - << "') differ"; - QString strippedVarType = varType; - QString strippedConversionType = conversionType; - TypeInfo::stripQualifiers(&strippedVarType); - TypeInfo::stripQualifiers(&strippedConversionType); - if (strippedVarType == strippedConversionType) - str << " in qualifiers. Please make sure the type is a distinct token"; - str << '.'; - return result; -} - QString msgCannotFindSmartPointerGetter(const SmartPointerTypeEntryCPtr &te) { return u"Getter \""_s + te->getter() + u"()\" of smart pointer \""_s |
