diff options
| author | Méven Car <[email protected]> | 2023-08-28 14:39:00 +0200 |
|---|---|---|
| committer | Méven Car <[email protected]> | 2023-08-29 07:18:51 +0000 |
| commit | 079f903bc8691866b4aa3c3e41204a47e735c062 (patch) | |
| tree | 7d61e0e86d2a4e91e64f360efd01424fab8f3e8b /src/dolphinmainwindow.cpp | |
| parent | a55bba67bc47cc0a51ce2c5b160a69166459355a (diff) | |
Fix a bunch of clazy warnings
Diffstat (limited to 'src/dolphinmainwindow.cpp')
| -rw-r--r-- | src/dolphinmainwindow.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/dolphinmainwindow.cpp b/src/dolphinmainwindow.cpp index 637cd55af..e3373efe2 100644 --- a/src/dolphinmainwindow.cpp +++ b/src/dolphinmainwindow.cpp @@ -1144,7 +1144,8 @@ void DolphinMainWindow::openTerminalHere() { QList<QUrl> urls = {}; - for (const KFileItem &item : m_activeViewContainer->view()->selectedItems()) { + const auto selectedItems = m_activeViewContainer->view()->selectedItems(); + for (const KFileItem &item : selectedItems) { QUrl url = item.targetUrl(); if (item.isFile()) { url.setPath(QFileInfo(url.path()).absolutePath()); @@ -1174,7 +1175,7 @@ void DolphinMainWindow::openTerminalHere() } } - for (const QUrl &url : urls) { + for (const QUrl &url : std::as_const(urls)) { openTerminalJob(url); } } |
