mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-21 20:45:51 +03:00
Take reference to folder in folder map within User::getFolder
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
parent
4dd7ca30e3
commit
c48c1c2680
1 changed files with 1 additions and 1 deletions
|
@ -913,7 +913,7 @@ void User::setCurrentUser(const bool &isCurrent)
|
|||
|
||||
Folder *User::getFolder() const
|
||||
{
|
||||
for (Folder *const folder : FolderMan::instance()->map()) {
|
||||
for (const auto &folder : FolderMan::instance()->map()) {
|
||||
if (folder->accountState() == _account.data()) {
|
||||
return folder;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue