aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/valgrind
diff options
context:
space:
mode:
authorAlessandro Portale <alessandro.portale@qt.io>2021-02-15 10:03:57 +0100
committerAlessandro Portale <alessandro.portale@qt.io>2021-02-17 14:43:29 +0000
commit72d91dc94af1861c4374dab5698859149b21dbfd (patch)
tree3e51016b44c6a4db35fba150579e033bbdf2a274 /src/plugins/valgrind
parent1d27f894bb8454693ff5fc5979dda0d9090dc7a8 (diff)
Use qAsConst with non-const Qt containers in range-loops
... in various places Change-Id: Ic6c0c1b9437a1ed402105c7a14a1f5f9454a68d4 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Diffstat (limited to 'src/plugins/valgrind')
-rw-r--r--src/plugins/valgrind/memchecktool.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/valgrind/memchecktool.cpp b/src/plugins/valgrind/memchecktool.cpp
index a8d9e51d0d7..7e4e7b82fc9 100644
--- a/src/plugins/valgrind/memchecktool.cpp
+++ b/src/plugins/valgrind/memchecktool.cpp
@@ -1199,7 +1199,7 @@ HeobDialog::HeobDialog(QWidget *parent) :
auto profilesLayout = new QHBoxLayout;
m_profilesCombo = new QComboBox;
- for (const auto &profile : m_profiles)
+ for (const auto &profile : qAsConst(m_profiles))
m_profilesCombo->addItem(settings->value(profile + "/" + heobProfileNameC).toString());
if (hasSelProfile) {
int selIdx = m_profiles.indexOf(selProfile);