aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorAlbert Astals Cid <albert.astals@canonical.com>2015-10-23 14:51:57 +0200
committerSimon Hausmann <simon.hausmann@theqtcompany.com>2015-12-15 05:09:19 +0000
commit764a4056a712320647cd3331e2b26acdc8332da4 (patch)
treee657b6fcb2f92ce23c5429f677d0d70086f6211a /src/plugins
parente3c3710b01a100b1f662e02302803b50cc7a27f6 (diff)
qDelete(hash/map.values()) -> qDelete(hash/map)
Saves iterating the whole container and unneeded allocation of a list Change-Id: Iae1f8e0cf3a17b163cf930c43a27b2ebb4315e5c Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/qmltooling/qmldbg_profiler/qqmlprofilerservice.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/qmltooling/qmldbg_profiler/qqmlprofilerservice.cpp b/src/plugins/qmltooling/qmldbg_profiler/qqmlprofilerservice.cpp
index 65b99ef7ca..2654cf662b 100644
--- a/src/plugins/qmltooling/qmldbg_profiler/qqmlprofilerservice.cpp
+++ b/src/plugins/qmltooling/qmldbg_profiler/qqmlprofilerservice.cpp
@@ -56,7 +56,7 @@ QQmlProfilerServiceImpl::~QQmlProfilerServiceImpl()
{
// No need to lock here. If any engine or global profiler is still trying to register at this
// point we have a nasty bug anyway.
- qDeleteAll(m_engineProfilers.values());
+ qDeleteAll(m_engineProfilers);
qDeleteAll(m_globalProfilers);
}