From 298a0f4dfb0b6ad7c79f087497c19a5a1aafe653 Mon Sep 17 00:00:00 2001 From: Claudio Cambra Date: Thu, 13 Jul 2023 18:13:07 +0800 Subject: [PATCH] Convert directly from QUrl to NSURL Signed-off-by: Claudio Cambra --- src/gui/updater/sparkleupdater_mac.mm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/gui/updater/sparkleupdater_mac.mm b/src/gui/updater/sparkleupdater_mac.mm index ab962ae9b66d..86b185294108 100644 --- a/src/gui/updater/sparkleupdater_mac.mm +++ b/src/gui/updater/sparkleupdater_mac.mm @@ -270,8 +270,7 @@ - (void)userDidCancelDownload:(SUUpdater *)updater void SparkleUpdater::setUpdateUrl(const QUrl &url) { - NSURL* nsurl = [NSURL URLWithString:url.toString().toNSString()]; - [_interface->updater setFeedURL: nsurl]; + [_interface->updater setFeedURL:url.toNSURL()]; } bool SparkleUpdater::autoUpdaterAllowed()