mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-23 13:35:58 +03:00
Use const auto in FileProviderDomainManager
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
parent
81fb05298c
commit
9b4ba22c46
1 changed files with 3 additions and 3 deletions
|
@ -75,8 +75,8 @@ class FileProviderDomainManager::Private {
|
||||||
|
|
||||||
void addFileProviderDomain(const AccountState *accountState)
|
void addFileProviderDomain(const AccountState *accountState)
|
||||||
{
|
{
|
||||||
const QString accountDisplayName = accountState->account()->displayName();
|
const auto accountDisplayName = accountState->account()->displayName();
|
||||||
const QString accountId = accountState->account()->userIdAtHostWithPort();
|
const auto accountId = accountState->account()->userIdAtHostWithPort();
|
||||||
|
|
||||||
qCDebug(lcMacFileProviderDomainManager) << "Adding new file provider domain for account with id: " << accountId;
|
qCDebug(lcMacFileProviderDomainManager) << "Adding new file provider domain for account with id: " << accountId;
|
||||||
|
|
||||||
|
@ -100,7 +100,7 @@ class FileProviderDomainManager::Private {
|
||||||
|
|
||||||
void removeFileProviderDomain(const AccountState *accountState)
|
void removeFileProviderDomain(const AccountState *accountState)
|
||||||
{
|
{
|
||||||
const QString accountId = accountState->account()->userIdAtHostWithPort();
|
const auto accountId = accountState->account()->userIdAtHostWithPort();
|
||||||
qCDebug(lcMacFileProviderDomainManager) << "Removing file provider domain for account with id: " << accountId;
|
qCDebug(lcMacFileProviderDomainManager) << "Removing file provider domain for account with id: " << accountId;
|
||||||
|
|
||||||
if(!_registeredDomains.contains(accountId)) {
|
if(!_registeredDomains.contains(accountId)) {
|
||||||
|
|
Loading…
Reference in a new issue