Fix compilation issues due to inappropriate QString usage

This commit is contained in:
Vladimir Golovnev (Glassez) 2022-03-21 11:50:32 +03:00
parent baa8d2c326
commit a4b606c6e9
No known key found for this signature in database
GPG Key ID: 52A2C7DEE2DFA6F7
2 changed files with 3 additions and 3 deletions

View File

@ -445,7 +445,7 @@ void TrackerListWidget::copyTrackerUrl()
for (const QTreeWidgetItem *item : selectedTrackerItems)
{
QString trackerURL = item->data(COL_URL, Qt::DisplayRole).toString();
qDebug() << "Copy: " + trackerURL;
qDebug() << "Copy:" << qUtf8Printable(trackerURL);
urlsToCopy << trackerURL;
}
QApplication::clipboard()->setText(urlsToCopy.join(u'\n'));

View File

@ -215,8 +215,8 @@ namespace
break;
default:
Q_ASSERT_X(false, "processMap"
, QString("Unexpected type: %1")
.arg(QMetaType::typeName(static_cast<QMetaType::Type>(value.type())))
, u"Unexpected type: %1"_qs
.arg(QString::fromLatin1(QMetaType::typeName(static_cast<QMetaType::Type>(value.type()))))
.toUtf8().constData());
}
}