From 26b44059b9b37039625486f38f82b05f481e8ca8 Mon Sep 17 00:00:00 2001 From: Claudio Cambra Date: Wed, 16 Oct 2024 10:10:54 +0800 Subject: [PATCH] Take reference to folder in folder map within User::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 914517672a2a0..98393f4ca9406 100644 --- a/src/gui/tray/usermodel.cpp +++ b/src/gui/tray/usermodel.cpp @@ -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; }