Use const auto in FileProviderDomainManager

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
Claudio Cambra 2023-03-11 01:30:08 +01:00
parent 81fb05298c
commit 9b4ba22c46
No known key found for this signature in database
GPG key ID: C839200C384636B0

View file

@ -75,8 +75,8 @@ class FileProviderDomainManager::Private {
void addFileProviderDomain(const AccountState *accountState)
{
const QString accountDisplayName = accountState->account()->displayName();
const QString accountId = accountState->account()->userIdAtHostWithPort();
const auto accountDisplayName = accountState->account()->displayName();
const auto accountId = accountState->account()->userIdAtHostWithPort();
qCDebug(lcMacFileProviderDomainManager) << "Adding new file provider domain for account with id: " << accountId;
@ -100,7 +100,7 @@ class FileProviderDomainManager::Private {
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;
if(!_registeredDomains.contains(accountId)) {