Modernise Obj-C property notation in fileproviderdomainmanager

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
Claudio Cambra 2023-03-11 12:41:24 +01:00
parent c593bd8a50
commit 85b9e7df03
No known key found for this signature in database
GPG key ID: C839200C384636B0

View file

@ -90,8 +90,8 @@ class FileProviderDomainManager::Private {
[NSFileProviderManager addDomain:fileProviderDomain completionHandler:^(NSError * const error) {
if(error) {
qCDebug(lcMacFileProviderDomainManager) << "Error adding file provider domain: "
<< [error code]
<< [error localizedDescription];
<< error.code
<< error.localizedDescription;
}
}];
@ -113,8 +113,8 @@ class FileProviderDomainManager::Private {
[NSFileProviderManager removeDomain:fileProviderDomain completionHandler:^(NSError *error) {
if(error) {
qCDebug(lcMacFileProviderDomainManager) << "Error removing file provider domain: "
<< [error code]
<< [error localizedDescription];
<< error.code
<< error.localizedDescription;
}
}];
@ -129,8 +129,8 @@ class FileProviderDomainManager::Private {
[NSFileProviderManager removeAllDomainsWithCompletionHandler:^(NSError * const error) {
if(error) {
qCDebug(lcMacFileProviderDomainManager) << "Error removing all file provider domains: "
<< [error code]
<< [error localizedDescription];
<< error.code
<< error.localizedDescription;
}
}];
}
@ -142,8 +142,8 @@ class FileProviderDomainManager::Private {
[NSFileProviderManager getDomainsWithCompletionHandler:^(NSArray<NSFileProviderDomain *> * const domains, NSError * const error) {
if (error) {
qCDebug(lcMacFileProviderDomainManager) << "Error removing and wiping file provider domains: "
<< [error code]
<< [error localizedDescription];
<< error.code
<< error.localizedDescription;
return;
}
@ -153,9 +153,9 @@ class FileProviderDomainManager::Private {
if (error) {
qCDebug(lcMacFileProviderDomainManager) << "Error removing and wiping file provider domain: "
<< [domain displayName]
<< [error code]
<< [error localizedDescription];
<< domain.displayName
<< error.code
<< error.localizedDescription;
return;
}
}];