aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/ApiExtractor/messages.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2022-04-22 08:52:16 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2022-04-25 12:13:40 +0200
commit42666b5bab09a80a65ae8f61961985f4923b7d65 (patch)
treef11276bd86f78455a3d8063f6111dbc0ca249098 /sources/shiboken6/ApiExtractor/messages.cpp
parent20544c012c81dc05044291cacaeb4d71ced509c7 (diff)
Migrate from QLatin1Char to UTF-16 char literals
Preparing for the deprecation of QLatin1Char in 6.4. Task-number: QTBUG-98434 Pick-to: 6.3 6.2 Change-Id: I8bc92aa9f4e6dbfcb12d2025c5a1e760ab4f0d7f Reviewed-by: Christian Tismer <tismer@stackless.com>
Diffstat (limited to 'sources/shiboken6/ApiExtractor/messages.cpp')
-rw-r--r--sources/shiboken6/ApiExtractor/messages.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/sources/shiboken6/ApiExtractor/messages.cpp b/sources/shiboken6/ApiExtractor/messages.cpp
index 5e1145ab4..fb992a230 100644
--- a/sources/shiboken6/ApiExtractor/messages.cpp
+++ b/sources/shiboken6/ApiExtractor/messages.cpp
@@ -500,7 +500,7 @@ QString msgNamespaceToBeExtendedNotFound(const QString &namespaceName, const QSt
{
return QLatin1String("The namespace '") + namespaceName
+ QLatin1String("' to be extended cannot be found in package ")
- + packageName + QLatin1Char('.');
+ + packageName + u'.';
}
QString msgPropertyTypeParsingFailed(const QString &name, const QString &typeName,
@@ -716,14 +716,14 @@ QString msgLeftOverArguments(const QVariantMap &remainingArgs)
if (!value.isEmpty())
str << ' ' << value;
}
- str << "\nCommand line: " << QCoreApplication::arguments().join(QLatin1Char(' '));
+ str << "\nCommand line: " << QCoreApplication::arguments().join(u' ');
return message;
}
QString msgInvalidVersion(const QString &package, const QString &version)
{
return QLatin1String("Invalid version \"") + version
- + QLatin1String("\" specified for package ") + package + QLatin1Char('.');
+ + QLatin1String("\" specified for package ") + package + u'.';
}
QString msgCyclicDependency(const QString &funcName, const QString &graphName,
@@ -771,7 +771,7 @@ QString msgEnclosingClassNotFound(const TypeEntry *t)
QString msgUnknownOperator(const AbstractMetaFunction* func)
{
QString result = QLatin1String("Unknown operator: \"") + func->originalName()
- + QLatin1Char('"');
+ + u'"';
if (const AbstractMetaClass *c = func->implementingClass())
result += QLatin1String(" in class: ") + c->name();
return result;