Use for : loop in getFolder

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
Claudio Cambra 2024-05-10 13:11:27 +08:00 committed by backportbot[bot]
parent 51627ef989
commit bfaf526ad5

View file

@ -906,7 +906,7 @@ void User::setCurrentUser(const bool &isCurrent)
Folder *User::getFolder() const
{
foreach (Folder *folder, FolderMan::instance()->map()) {
for (Folder *const folder : FolderMan::instance()->map()) {
if (folder->accountState() == _account.data()) {
return folder;
}