From aa3b315c3275f1be22b3606bf3fb08bf41ae095e Mon Sep 17 00:00:00 2001 From: Claudio Cambra Date: Wed, 22 Feb 2023 22:45:42 +0100 Subject: [PATCH] Name sparkle updater delegate more reasonably Signed-off-by: Claudio Cambra --- src/gui/updater/sparkleupdater_mac.mm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/gui/updater/sparkleupdater_mac.mm b/src/gui/updater/sparkleupdater_mac.mm index f4d010900..4a0be0260 100644 --- a/src/gui/updater/sparkleupdater_mac.mm +++ b/src/gui/updater/sparkleupdater_mac.mm @@ -22,10 +22,10 @@ #include "configfile.h" #include "updater/sparkleupdater.h" -@interface DelegateObject : NSObject +@interface NCSparkleUpdaterDelegate : NSObject - (BOOL)updaterMayCheckForUpdates:(SUUpdater *)bundle; @end -@implementation DelegateObject //(SUUpdaterDelegateInformalProtocol) +@implementation NCSparkleUpdaterDelegate //(SUUpdaterDelegateInformalProtocol) - (BOOL)updaterMayCheckForUpdates:(SUUpdater *)bundle { @@ -86,7 +86,7 @@ public: } SUUpdater* updater; - DelegateObject *delegate; + NCSparkleUpdaterDelegate *delegate; }; // Delete ~/Library//Preferences/com.owncloud.desktopclient.plist to re-test @@ -94,7 +94,7 @@ SparkleUpdater::SparkleUpdater(const QUrl& appCastUrl) : Updater() , d(std::make_unique()) { - d->delegate = [[DelegateObject alloc] init]; + d->delegate = [[NCSparkleUpdaterDelegate alloc] init]; [d->delegate retain]; d->updater = [SUUpdater sharedUpdater];