diff options
| author | Sona Kurazyan <sona.kurazyan@qt.io> | 2022-04-13 16:28:09 +0200 |
|---|---|---|
| committer | Sona Kurazyan <sona.kurazyan@qt.io> | 2022-04-14 15:29:06 +0200 |
| commit | d0a08d1f1176f00a8f3dde8dba49f139ab1e2535 (patch) | |
| tree | 3761ba328ab3d4d189bb9be5168876ff34214b4b /src/plugins/platforms/android/qandroidplatformdialoghelpers.cpp | |
| parent | 252e3a1526dc01c5e5024a4ff4f4fb2e87fbc3d2 (diff) | |
Android: stop using QLatin1Char constructor for creating char literals
Required for porting away from QLatin1Char/QLatin1String in scope of
QTBUG-98434.
As a drive-by, fix qsizetype -> int narrowing conversion warnings for
the touched lines.
Change-Id: Iebcbdbd7cecac09d0a7039e3ef6a4509d33039ba
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
Diffstat (limited to 'src/plugins/platforms/android/qandroidplatformdialoghelpers.cpp')
| -rw-r--r-- | src/plugins/platforms/android/qandroidplatformdialoghelpers.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/platforms/android/qandroidplatformdialoghelpers.cpp b/src/plugins/platforms/android/qandroidplatformdialoghelpers.cpp index ddf58e095bd..03f19c5f876 100644 --- a/src/plugins/platforms/android/qandroidplatformdialoghelpers.cpp +++ b/src/plugins/platforms/android/qandroidplatformdialoghelpers.cpp @@ -73,8 +73,8 @@ static QString htmlText(QString text) { if (Qt::mightBeRichText(text)) return text; - text.remove(QLatin1Char('\r')); - return text.toHtmlEscaped().replace(QLatin1Char('\n'), QLatin1String("<br />")); + text.remove(u'\r'); + return text.toHtmlEscaped().replace(u'\n', QLatin1String("<br />")); } bool QAndroidPlatformMessageDialogHelper::show(Qt::WindowFlags windowFlags, |
