Convert directly from QUrl to NSURL

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
Claudio Cambra 2023-07-13 18:13:07 +08:00 committed by Matthieu Gallien
parent ff1fbdacf2
commit 298a0f4dfb

View file

@ -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()