summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorMichael Weghorn <m.weghorn@posteo.de>2025-01-27 22:06:29 +0100
committerMichael Weghorn <m.weghorn@posteo.de>2025-01-28 08:19:52 +0100
commit5e3805934e882afe3b8a46902551b770616301a4 (patch)
tree1f3c5dc8c75720afef33092856a79385260c8a95 /vcl
parent12c6bf058cf88b6d4cfe6e0aff09cf183ea9e033 (diff)
tdf#130857 qt weld: Address clazy warning (clazy-range-loop-detach)
Address this clazy warning: .../libreoffice/vcl/qt5/QtInstanceMenuButton.cxx:154:5: c++11 range-loop might detach Qt container (QList) [clazy-range-loop-detach] Change-Id: I4348b2c66b54716a2442f5c3ccafafd66cf92333 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/180808 Tested-by: Jenkins Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/qt5/QtInstanceMenuButton.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/qt5/QtInstanceMenuButton.cxx b/vcl/qt5/QtInstanceMenuButton.cxx
index 617c02d3d980..6bbcd9cdcc9b 100644
--- a/vcl/qt5/QtInstanceMenuButton.cxx
+++ b/vcl/qt5/QtInstanceMenuButton.cxx
@@ -150,7 +150,7 @@ QMenu& QtInstanceMenuButton::getMenu() const
QAction* QtInstanceMenuButton::getAction(const OUString& rIdent) const
{
- QList<QAction*> aActions = getMenu().actions();
+ const QList<QAction*> aActions = getMenu().actions();
for (QAction* pAction : aActions)
{
if (pAction && pAction->objectName() == toQString(rIdent))