[pim/akonadi] src/widgets: const'ify variable

Laurent Montel <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit c9c7b2175cfc8276d2a0225fc8ce25ce31ae841f by Laurent Montel.
Committed on 06/08/2026 at 19:18.
Pushed by mlaurent into branch 'master'.

const'ify variable

M  +1    -1    src/widgets/standardactionmanager.cpp

https://invent.kde.org/pim/akonadi/-/commit/c9c7b2175cfc8276d2a0225fc8ce25ce31ae841f

diff --git a/src/widgets/standardactionmanager.cpp b/src/widgets/standardactionmanager.cpp
index 3012867b1..3d562d80d 100644
--- a/src/widgets/standardactionmanager.cpp
+++ b/src/widgets/standardactionmanager.cpp
@@ -507,7 +507,7 @@ void StandardActionManagerPrivate::createActionFolderMenu(QMenu *menu, StandardA
     if (type == StandardActionManager::CopyCollectionToMenu || type == StandardActionManager::CopyItemToMenu || type == StandardActionManager::MoveItemToMenu
         || type == StandardActionManager::MoveCollectionToMenu) {
         new RecentCollectionAction(type, Akonadi::Collection::List(), collectionSelectionModel->model(), menu);
-        Collection::List selectedCollectionsList = selectedCollections();
+        const Collection::List selectedCollectionsList = selectedCollections();
         const QSet<QString> mimeTypes = mimeTypesOfSelection(type);
         fillFoldersMenu(selectedCollectionsList, mimeTypes, type, menu, collectionSelectionModel->model(), QModelIndex());
     }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.