diff options
author | Sona Kurazyan <sona.kurazyan@qt.io> | 2022-04-11 17:27:52 +0200 |
---|---|---|
committer | Sona Kurazyan <sona.kurazyan@qt.io> | 2022-04-28 05:58:52 +0200 |
commit | 9a55c695c7ecb8a2154661462255423a20ef4097 (patch) | |
tree | f9b07d22115cf9f4984086a4aaa7c5dfea7e0c34 /src/gui/text/qtextdocument.cpp | |
parent | 7b6b133746aa8bf23e08753851d7e23cc9d76170 (diff) |
QtGui: replace remaining uses of QLatin1String with QLatin1StringView
Task-number: QTBUG-98434
Change-Id: I98c27030c783f968cbf38dc966ce486dc366b302
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'src/gui/text/qtextdocument.cpp')
-rw-r--r-- | src/gui/text/qtextdocument.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/text/qtextdocument.cpp b/src/gui/text/qtextdocument.cpp index 71568e5ba6..0eac1af8ba 100644 --- a/src/gui/text/qtextdocument.cpp +++ b/src/gui/text/qtextdocument.cpp @@ -2469,7 +2469,7 @@ QString QTextHtmlExporter::toHtml(ExportMode mode) void QTextHtmlExporter::emitAttribute(const char *attribute, const QString &value) { html += u' '; - html += QLatin1String(attribute); + html += QLatin1StringView(attribute); html += "=\""_L1; html += value.toHtmlEscaped(); html += u'"'; @@ -2512,7 +2512,7 @@ bool QTextHtmlExporter::emitCharFormatStyle(const QTextCharFormat &format) } if (name) { html += " font-size:"_L1; - html += QLatin1String(name); + html += QLatin1StringView(name); html += u';'; attributesEmitted = true; } @@ -2659,7 +2659,7 @@ void QTextHtmlExporter::emitTextLength(const char *attribute, const QTextLength return; html += u' '; - html += QLatin1String(attribute); + html += QLatin1StringView(attribute); html += "=\""_L1; html += QString::number(length.rawValue()); @@ -2702,7 +2702,7 @@ void QTextHtmlExporter::emitFloatStyle(QTextFrameFormat::Position pos, StyleMode html += u'\"'; } -static QLatin1String richtextBorderStyleToHtmlBorderStyle(QTextFrameFormat::BorderStyle style) +static QLatin1StringView richtextBorderStyleToHtmlBorderStyle(QTextFrameFormat::BorderStyle style) { switch (style) { case QTextFrameFormat::BorderStyle_None: |