summaryrefslogtreecommitdiff
path: root/src/designer/src/components/formeditor/formwindow.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2023-03-21 15:35:44 +0100
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2023-04-21 17:18:09 +0200
commit00ff2b06a17e90921d79831a62e95eecf8c6954a (patch)
tree40877b8e595eda601252c995f57d1dd3166c8cd3 /src/designer/src/components/formeditor/formwindow.cpp
parent6b7f6990aa1abed20c260a2eb2869f39ce59f8f7 (diff)
downloadqttools-00ff2b06a17e90921d79831a62e95eecf8c6954a.tar.gz
Qt Designer: Replace QLatin1Char by modern literals
Pick-to: 6.5 Change-Id: Ied11784e840d03542a5db281590729838ed625c3 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Diffstat (limited to 'src/designer/src/components/formeditor/formwindow.cpp')
-rw-r--r--src/designer/src/components/formeditor/formwindow.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/designer/src/components/formeditor/formwindow.cpp b/src/designer/src/components/formeditor/formwindow.cpp
index efad969c8..74e80cfa6 100644
--- a/src/designer/src/components/formeditor/formwindow.cpp
+++ b/src/designer/src/components/formeditor/formwindow.cpp
@@ -1126,13 +1126,13 @@ bool FormWindow::unify(QObject *w, QString &s, bool changeIt)
qlonglong num = 0;
qlonglong factor = 1;
qsizetype idx = s.size() - 1;
- const ushort zeroUnicode = QLatin1Char('0').unicode();
+ const char16_t zeroUnicode = u'0';
for ( ; idx > 0 && s.at(idx).isDigit(); --idx) {
num += (s.at(idx).unicode() - zeroUnicode) * factor;
factor *= 10;
}
// Position index past '_'.
- const QChar underscore = QLatin1Char('_');
+ const QChar underscore = u'_';
if (idx >= 0 && s.at(idx) == underscore) {
idx++;
} else {
@@ -1699,7 +1699,7 @@ static inline DomUI *domUIFromClipboard(int *widgetCount, int *actionCount)
{
*widgetCount = *actionCount = 0;
const QString clipboardText = qApp->clipboard()->text();
- if (clipboardText.isEmpty() || clipboardText.indexOf(QLatin1Char('<')) == -1)
+ if (clipboardText.isEmpty() || clipboardText.indexOf(u'<') == -1)
return nullptr;
QXmlStreamReader reader(clipboardText);