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:
parent
e1d50add35
commit
07071e3c0c
@ -244,7 +244,7 @@ namespace {
|
|||||||
{
|
{
|
||||||
return QUtf8::convertToUnicode(out, QByteArrayView(v));
|
return QUtf8::convertToUnicode(out, QByteArrayView(v));
|
||||||
}
|
}
|
||||||
QChar *write(QChar *out, QLatin1String v)
|
QChar *write(QChar *out, QLatin1StringView v)
|
||||||
{
|
{
|
||||||
for (char ch : v)
|
for (char ch : v)
|
||||||
*out++ = QLatin1Char(ch);
|
*out++ = QLatin1Char(ch);
|
||||||
|
@ -64,7 +64,7 @@ namespace QSharedMemoryPrivate
|
|||||||
{
|
{
|
||||||
int createUnixKeyFile(const QString &fileName);
|
int createUnixKeyFile(const QString &fileName);
|
||||||
QString makePlatformSafeKey(const QString &key,
|
QString makePlatformSafeKey(const QString &key,
|
||||||
const QString &prefix = QLatin1String("qipc_sharedmemory_"));
|
const QString &prefix = QStringLiteral("qipc_sharedmemory_"));
|
||||||
}
|
}
|
||||||
|
|
||||||
QT_END_NAMESPACE
|
QT_END_NAMESPACE
|
||||||
@ -141,7 +141,7 @@ public:
|
|||||||
|
|
||||||
static int createUnixKeyFile(const QString &fileName);
|
static int createUnixKeyFile(const QString &fileName);
|
||||||
static QString makePlatformSafeKey(const QString &key,
|
static QString makePlatformSafeKey(const QString &key,
|
||||||
const QString &prefix = QLatin1String("qipc_sharedmemory_"));
|
const QString &prefix = QStringLiteral("qipc_sharedmemory_"));
|
||||||
#ifdef Q_OS_WIN
|
#ifdef Q_OS_WIN
|
||||||
Qt::HANDLE handle();
|
Qt::HANDLE handle();
|
||||||
#elif defined(QT_POSIX_IPC)
|
#elif defined(QT_POSIX_IPC)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user