summaryrefslogtreecommitdiffstats
path: root/src/gui/text/qtexthtmlparser.cpp
diff options
context:
space:
mode:
authorSona Kurazyan <[email protected]>2022-04-11 17:27:52 +0200
committerSona Kurazyan <[email protected]>2022-04-28 05:58:52 +0200
commit9a55c695c7ecb8a2154661462255423a20ef4097 (patch)
treef9b07d22115cf9f4984086a4aaa7c5dfea7e0c34 /src/gui/text/qtexthtmlparser.cpp
parent7b6b133746aa8bf23e08753851d7e23cc9d76170 (diff)
QtGui: replace remaining uses of QLatin1String with QLatin1StringView
Task-number: QTBUG-98434 Change-Id: I98c27030c783f968cbf38dc966ce486dc366b302 Reviewed-by: Edward Welbourne <[email protected]>
Diffstat (limited to 'src/gui/text/qtexthtmlparser.cpp')
-rw-r--r--src/gui/text/qtexthtmlparser.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gui/text/qtexthtmlparser.cpp b/src/gui/text/qtexthtmlparser.cpp
index eaa2bd679fa..7f5cde8fe3d 100644
--- a/src/gui/text/qtexthtmlparser.cpp
+++ b/src/gui/text/qtexthtmlparser.cpp
@@ -326,18 +326,18 @@ static_assert(MAX_ENTITY == sizeof entities / sizeof *entities);
#if defined(Q_CC_MSVC) && _MSC_VER < 1600
bool operator<(const QTextHtmlEntity &entity1, const QTextHtmlEntity &entity2)
{
- return QLatin1String(entity1.name) < QLatin1String(entity2.name);
+ return QLatin1StringView(entity1.name) < QLatin1StringView(entity2.name);
}
#endif
static bool operator<(QStringView entityStr, const QTextHtmlEntity &entity)
{
- return entityStr < QLatin1String(entity.name);
+ return entityStr < QLatin1StringView(entity.name);
}
static bool operator<(const QTextHtmlEntity &entity, QStringView entityStr)
{
- return QLatin1String(entity.name) < entityStr;
+ return QLatin1StringView(entity.name) < entityStr;
}
static QChar resolveEntity(QStringView entity)
@@ -451,12 +451,12 @@ static const QTextHtmlElement elements[Html_NumElements]= {
static bool operator<(const QString &str, const QTextHtmlElement &e)
{
- return str < QLatin1String(e.name);
+ return str < QLatin1StringView(e.name);
}
static bool operator<(const QTextHtmlElement &e, const QString &str)
{
- return QLatin1String(e.name) < str;
+ return QLatin1StringView(e.name) < str;
}
static const QTextHtmlElement *lookupElementHelper(const QString &element)