diff --git a/src/gui/updater/sparkleupdater_mac.mm b/src/gui/updater/sparkleupdater_mac.mm index ab962ae9b..86b185294 100644 --- a/src/gui/updater/sparkleupdater_mac.mm +++ b/src/gui/updater/sparkleupdater_mac.mm @@ -270,8 +270,7 @@ SparkleUpdater::~SparkleUpdater() = default; 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()