Replace QLatin1String with operator _L1

This commit is contained in:
Jonas Kvinge
2024-09-07 04:24:14 +02:00
parent e3e6a22172
commit 4270b12cd1
185 changed files with 2429 additions and 2139 deletions

View File

@@ -33,6 +33,8 @@
#include "macosdevicefinder.h"
#include "enginedevice.h"
using namespace Qt::Literals::StringLiterals;
namespace {
template<typename T>
@@ -107,7 +109,7 @@ EngineDeviceList MacOsDeviceFinder::ListDevices() {
EngineDevice device;
device.value = id;
device.description = QString::fromUtf8(CFStringGetCStringPtr(*device_name, CFStringGetSystemEncoding()));
if (device.description.isEmpty()) device.description = QLatin1String("Unknown device ") + device.value.toString();
if (device.description.isEmpty()) device.description = "Unknown device "_L1 + device.value.toString();
device.iconname = device.GuessIconName();
device_list.append(device);
}