From 9ac9eefc16451ec765ef37ab3a58a1fcc524f74e Mon Sep 17 00:00:00 2001 From: Claudio Cambra Date: Fri, 10 May 2024 13:11:27 +0800 Subject: [PATCH] Use for : loop in getFolder Signed-off-by: Claudio Cambra --- src/gui/tray/usermodel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/tray/usermodel.cpp b/src/gui/tray/usermodel.cpp index b7b56457f489b..36ef9d94f39d2 100644 --- a/src/gui/tray/usermodel.cpp +++ b/src/gui/tray/usermodel.cpp @@ -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; }