diff options
author | Sona Kurazyan <sona.kurazyan@qt.io> | 2022-04-12 17:33:01 +0200 |
---|---|---|
committer | Marc Mutz <marc.mutz@qt.io> | 2022-05-02 23:38:46 +0000 |
commit | 7c9c195235378c2619d140bccbb957ba1d7a7dea (patch) | |
tree | f9bb54b9f713aaf0822401d5af80ebdfbf6f5bbd /src/plugins/platforms/minimal/qminimalbackingstore.cpp | |
parent | e65e3f3021db90ffd236f9aa4bc3dd43b89a0ec8 (diff) |
Plugins: 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: Id76add7e86b6dfb89f758a9efb0644067f0f44de
Reviewed-by: Marc Mutz <marc.mutz@qt.io>
Diffstat (limited to 'src/plugins/platforms/minimal/qminimalbackingstore.cpp')
-rw-r--r-- | src/plugins/platforms/minimal/qminimalbackingstore.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/platforms/minimal/qminimalbackingstore.cpp b/src/plugins/platforms/minimal/qminimalbackingstore.cpp index 402ee7e2dd..2ea5b159c4 100644 --- a/src/plugins/platforms/minimal/qminimalbackingstore.cpp +++ b/src/plugins/platforms/minimal/qminimalbackingstore.cpp @@ -47,6 +47,8 @@ QT_BEGIN_NAMESPACE +using namespace Qt::StringLiterals; + QMinimalBackingStore::QMinimalBackingStore(QWindow *window) : QPlatformBackingStore(window) , mDebug(QMinimalIntegration::instance()->options() & QMinimalIntegration::DebugBackingStore) @@ -75,7 +77,7 @@ void QMinimalBackingStore::flush(QWindow *window, const QRegion ®ion, const Q if (mDebug) { static int c = 0; - QString filename = QString("output%1.png").arg(c++, 4, 10, QLatin1Char('0')); + QString filename = QString("output%1.png").arg(c++, 4, 10, QChar(u'0')); qDebug() << "QMinimalBackingStore::flush() saving contents to" << filename.toLocal8Bit().constData(); mImage.save(filename); } |