summaryrefslogtreecommitdiffstats
path: root/src/gui/text
diff options
context:
space:
mode:
authorMate Barany <mate.barany@qt.io>2022-09-15 16:08:08 +0200
committerMate Barany <mate.barany@qt.io>2022-09-21 14:00:37 +0200
commitec19ced7317a41b6c8e0319c37e4f5fc44e0a1e8 (patch)
treee27278067b2164140cea84c28dee0f47367c2a2b /src/gui/text
parent6f12603cb1ebf636852d972a304c0a6e752977df (diff)
QtGui: Fix mismatches between string types and string literals
This commit addresses some comments from the review of QTBUG-98434. Some strings were initialized with incorrect literal types - fix the mismatches between the string types and string literals. Task-number: QTBUG-103100 Change-Id: I5f9f8a2c1583c21711f7b9ff177917f20690b5a3 Reviewed-by: Marc Mutz <marc.mutz@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Diffstat (limited to 'src/gui/text')
-rw-r--r--src/gui/text/qtextlist.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/text/qtextlist.cpp b/src/gui/text/qtextlist.cpp
index fc61e54cda..2b178b70c9 100644
--- a/src/gui/text/qtextlist.cpp
+++ b/src/gui/text/qtextlist.cpp
@@ -145,7 +145,7 @@ QString QTextList::itemText(const QTextBlock &blockIt) const
const int style = format().style();
QString numberPrefix;
- QString numberSuffix = "."_L1;
+ QString numberSuffix = u"."_s;
if (format().hasProperty(QTextFormat::ListNumberPrefix))
numberPrefix = format().numberPrefix();
@@ -214,7 +214,7 @@ QString QTextList::itemText(const QTextBlock &blockIt) const
result = QString::fromLatin1(romanNumeral);
}
else {
- result = "?"_L1;
+ result = u"?"_s;
}
}