QtCore: remove the remaining uses of QLatin1String

Task-number: QTBUG-98434
Change-Id: Iba9194f525d983f735d3927a0dbfae6b9013c408
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
This commit is contained in:
Sona Kurazyan 2022-04-26 15:22:06 +02:00
parent e1d50add35
commit 07071e3c0c
2 changed files with 3 additions and 3 deletions

View File

@ -244,7 +244,7 @@ namespace {
{
return QUtf8::convertToUnicode(out, QByteArrayView(v));
}
QChar *write(QChar *out, QLatin1String v)
QChar *write(QChar *out, QLatin1StringView v)
{
for (char ch : v)
*out++ = QLatin1Char(ch);

View File

@ -64,7 +64,7 @@ namespace QSharedMemoryPrivate
{
int createUnixKeyFile(const QString &fileName);
QString makePlatformSafeKey(const QString &key,
const QString &prefix = QLatin1String("qipc_sharedmemory_"));
const QString &prefix = QStringLiteral("qipc_sharedmemory_"));
}
QT_END_NAMESPACE
@ -141,7 +141,7 @@ public:
static int createUnixKeyFile(const QString &fileName);
static QString makePlatformSafeKey(const QString &key,
const QString &prefix = QLatin1String("qipc_sharedmemory_"));
const QString &prefix = QStringLiteral("qipc_sharedmemory_"));
#ifdef Q_OS_WIN
Qt::HANDLE handle();
#elif defined(QT_POSIX_IPC)