Replace QStringLiteral with QLatin1String
This commit is contained in:
@@ -49,7 +49,7 @@ DeviceDatabaseBackend::Device DeviceInfo::SaveToDb() const {
|
||||
for (const Backend &backend : backends_) {
|
||||
unique_ids << backend.unique_id_;
|
||||
}
|
||||
ret.unique_id_ = unique_ids.join(QStringLiteral(","));
|
||||
ret.unique_id_ = unique_ids.join(QLatin1Char(','));
|
||||
|
||||
return ret;
|
||||
|
||||
|
||||
@@ -629,7 +629,7 @@ SharedPtr<ConnectedDevice> DeviceManager::Connect(DeviceInfo *info) {
|
||||
url_strings << url.toString();
|
||||
}
|
||||
|
||||
app_->AddError(tr("This type of device is not supported: %1").arg(url_strings.join(QStringLiteral(", "))));
|
||||
app_->AddError(tr("This type of device is not supported: %1").arg(url_strings.join(QLatin1String(", "))));
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
@@ -122,7 +122,7 @@ QVariantMap Udisks2Lister::DeviceHardwareInfo(const QString &id) {
|
||||
const PartitionData &data = device_data_[id];
|
||||
result[QStringLiteral(QT_TR_NOOP("D-Bus path"))] = data.dbus_path;
|
||||
result[QStringLiteral(QT_TR_NOOP("Serial number"))] = data.serial;
|
||||
result[QStringLiteral(QT_TR_NOOP("Mount points"))] = data.mount_paths.join(QStringLiteral(", "));
|
||||
result[QStringLiteral(QT_TR_NOOP("Mount points"))] = data.mount_paths.join(QLatin1String(", "));
|
||||
result[QStringLiteral(QT_TR_NOOP("Partition label"))] = data.label;
|
||||
result[QStringLiteral(QT_TR_NOOP("UUID"))] = data.uuid;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user