From a4b606c6e9aa2c4868aa02de6b0ca1013ac3c858 Mon Sep 17 00:00:00 2001 From: "Vladimir Golovnev (Glassez)" Date: Mon, 21 Mar 2022 11:50:32 +0300 Subject: [PATCH] Fix compilation issues due to inappropriate QString usage --- src/gui/properties/trackerlistwidget.cpp | 2 +- src/webui/api/synccontroller.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gui/properties/trackerlistwidget.cpp b/src/gui/properties/trackerlistwidget.cpp index 5cc6d1d02..b4c5b21f6 100644 --- a/src/gui/properties/trackerlistwidget.cpp +++ b/src/gui/properties/trackerlistwidget.cpp @@ -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')); diff --git a/src/webui/api/synccontroller.cpp b/src/webui/api/synccontroller.cpp index c0c645d8b..929190c0a 100644 --- a/src/webui/api/synccontroller.cpp +++ b/src/webui/api/synccontroller.cpp @@ -215,8 +215,8 @@ namespace break; default: Q_ASSERT_X(false, "processMap" - , QString("Unexpected type: %1") - .arg(QMetaType::typeName(static_cast(value.type()))) + , u"Unexpected type: %1"_qs + .arg(QString::fromLatin1(QMetaType::typeName(static_cast(value.type())))) .toUtf8().constData()); } }