From 0464ea82a6850f58805bc4d6fc1df5369d83c3df Mon Sep 17 00:00:00 2001 From: Méven Car Date: Tue, 29 Apr 2025 12:33:44 +0200 Subject: Clazy fix --- src/views/dolphinviewactionhandler.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/views/dolphinviewactionhandler.cpp') diff --git a/src/views/dolphinviewactionhandler.cpp b/src/views/dolphinviewactionhandler.cpp index 079cd22fd..ce698a178 100644 --- a/src/views/dolphinviewactionhandler.cpp +++ b/src/views/dolphinviewactionhandler.cpp @@ -364,7 +364,8 @@ void DolphinViewActionHandler::createActions(SelectionMode::ActionTextHelper *ac viewSettings->setText(i18nc("@action:intoolbar", "View Settings")); viewSettings->setWhatsThis( xi18nc("@info:whatsthis View Settings Toolbutton", "This cycles through all view modes. The dropdown menu contains various view-related actions.")); - for (QAction *action : viewModeActions->actions()) { + const auto actions = viewModeActions->actions(); + for (QAction *action : actions) { viewSettings->addAction(action); } viewSettings->addSeparator(); -- cgit v1.3