mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-11 15:27:54 +00:00
Fix compilation issues due to inappropriate QString usage
This commit is contained in:
parent
baa8d2c326
commit
a4b606c6e9
@ -445,7 +445,7 @@ void TrackerListWidget::copyTrackerUrl()
|
|||||||
for (const QTreeWidgetItem *item : selectedTrackerItems)
|
for (const QTreeWidgetItem *item : selectedTrackerItems)
|
||||||
{
|
{
|
||||||
QString trackerURL = item->data(COL_URL, Qt::DisplayRole).toString();
|
QString trackerURL = item->data(COL_URL, Qt::DisplayRole).toString();
|
||||||
qDebug() << "Copy: " + trackerURL;
|
qDebug() << "Copy:" << qUtf8Printable(trackerURL);
|
||||||
urlsToCopy << trackerURL;
|
urlsToCopy << trackerURL;
|
||||||
}
|
}
|
||||||
QApplication::clipboard()->setText(urlsToCopy.join(u'\n'));
|
QApplication::clipboard()->setText(urlsToCopy.join(u'\n'));
|
||||||
|
@ -215,8 +215,8 @@ namespace
|
|||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
Q_ASSERT_X(false, "processMap"
|
Q_ASSERT_X(false, "processMap"
|
||||||
, QString("Unexpected type: %1")
|
, u"Unexpected type: %1"_qs
|
||||||
.arg(QMetaType::typeName(static_cast<QMetaType::Type>(value.type())))
|
.arg(QString::fromLatin1(QMetaType::typeName(static_cast<QMetaType::Type>(value.type()))))
|
||||||
.toUtf8().constData());
|
.toUtf8().constData());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user