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; }