Skip to content

Commit

Permalink
Use for : loop in getFolder
Browse files Browse the repository at this point in the history
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
  • Loading branch information
claucambra committed May 10, 2024
1 parent 67e5a12 commit 9ac9eef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/tray/usermodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -897,7 +897,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;
}
Expand Down

0 comments on commit 9ac9eef

Please sign in to comment.