diff options
| author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2022-04-22 08:52:16 +0200 |
|---|---|---|
| committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2022-04-25 12:13:40 +0200 |
| commit | 42666b5bab09a80a65ae8f61961985f4923b7d65 (patch) | |
| tree | f11276bd86f78455a3d8063f6111dbc0ca249098 /sources/shiboken6/ApiExtractor/docparser.cpp | |
| parent | 20544c012c81dc05044291cacaeb4d71ced509c7 (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/docparser.cpp')
| -rw-r--r-- | sources/shiboken6/ApiExtractor/docparser.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sources/shiboken6/ApiExtractor/docparser.cpp b/sources/shiboken6/ApiExtractor/docparser.cpp index debb521e3..f543e2eda 100644 --- a/sources/shiboken6/ApiExtractor/docparser.cpp +++ b/sources/shiboken6/ApiExtractor/docparser.cpp @@ -143,7 +143,7 @@ R"(<xsl:template match="/"> for (const DocModification &mod : mods) { if (isXpathDocModification(mod)) { QString xpath = mod.xpath(); - xpath.replace(QLatin1Char('"'), QLatin1String(""")); + xpath.replace(u'"', QLatin1String(""")); xsl += QLatin1String("<xsl:template match=\"") + xpath + QLatin1String("\">") + mod.code() + QLatin1String("</xsl:template>\n"); @@ -157,7 +157,7 @@ R"(<xsl:template match="/"> qPrintable(msgXpathDocModificationError(mods, errorMessage))); if (result == xml) { const QString message = QLatin1String("Query did not result in any modifications to \"") - + xml + QLatin1Char('"'); + + xml + u'"'; qCWarning(lcShibokenDoc, "%s", qPrintable(msgXpathDocModificationError(mods, message))); } |
