mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-21 20:45:51 +03:00
Use for : loop in getFolder
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
parent
51627ef989
commit
bfaf526ad5
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue