aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJarek Kobus <jaroslaw.kobus@qt.io>2020-11-16 20:13:45 +0100
committerJarek Kobus <jaroslaw.kobus@qt.io>2020-11-16 22:11:33 +0000
commite97a2675334cd3905ffddb8abab167447ac486d2 (patch)
tree463bb8e738464c876eaaa1709afd0e2e54e3a3fb /src
parent0de8aab7ae106360ce53e740f2b5301c7abf2ed8 (diff)
Don't create a temporary list of values for qDeleteAll
It's enough to pass QHash as an input for qDeleteAll, it will delete all values and won't touch keys. Change-Id: I9b00963888ac780f74eabdf59ad02890a042a0d2 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/plugins/autotest/autotestplugin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/autotest/autotestplugin.cpp b/src/plugins/autotest/autotestplugin.cpp
index ba40457e1e..ff8e93f185 100644
--- a/src/plugins/autotest/autotestplugin.cpp
+++ b/src/plugins/autotest/autotestplugin.cpp
@@ -172,7 +172,7 @@ AutotestPluginPrivate::AutotestPluginPrivate()
AutotestPluginPrivate::~AutotestPluginPrivate()
{
if (!s_projectSettings.isEmpty()) {
- qDeleteAll(s_projectSettings.values());
+ qDeleteAll(s_projectSettings);
s_projectSettings.clear();
}