diff options
| author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2024-02-09 15:16:55 +0100 |
|---|---|---|
| committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2024-02-13 11:06:27 +0100 |
| commit | b806c5e75e89fbe0a3fc53eb82ca1b27524cca69 (patch) | |
| tree | 5620d6ecab68f86d86ce9a43e42d6a2c7eafebc4 /sources/shiboken6/ApiExtractor/xmlutils_libxslt.cpp | |
| parent | 5fc29707445195415d68de2b1f0d38df294da4c0 (diff) | |
shiboken6: Introduce more latin1 literals
Removes a few QLatin1StringView.
Task-number: PYSIDE-2537
Change-Id: I2270270c6011e43218034c9cd3a195f1f08c7ed3
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'sources/shiboken6/ApiExtractor/xmlutils_libxslt.cpp')
| -rw-r--r-- | sources/shiboken6/ApiExtractor/xmlutils_libxslt.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sources/shiboken6/ApiExtractor/xmlutils_libxslt.cpp b/sources/shiboken6/ApiExtractor/xmlutils_libxslt.cpp index c5f361c91..4ea93b929 100644 --- a/sources/shiboken6/ApiExtractor/xmlutils_libxslt.cpp +++ b/sources/shiboken6/ApiExtractor/xmlutils_libxslt.cpp @@ -154,16 +154,16 @@ std::shared_ptr<XQuery> libXml_createXQuery(const QString &focus, QString *error // XSLT transformation -static const char xsltPrefix[] = R"(<?xml version="1.0" encoding="UTF-8" ?> +static constexpr auto xsltPrefix = R"(<?xml version="1.0" encoding="UTF-8" ?> <xsl:transform version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> -)"; +)"_L1; QString libXslt_transform(const QString &xml, QString xsl, QString *errorMessage) { ensureInitialized(); // Read XML data if (!xsl.startsWith(u"<?xml")) { - xsl.prepend(QLatin1StringView(xsltPrefix)); + xsl.prepend(xsltPrefix); xsl.append(u"</xsl:transform>"_s); } const QByteArray xmlData = xml.toUtf8(); |
