aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qmltooling
diff options
context:
space:
mode:
authorAlbert Astals Cid <albert.astals@canonical.com>2015-10-23 16:37:27 +0200
committerAlbert Astals Cid <albert.astals@canonical.com>2015-10-23 14:43:07 +0000
commitbf1ed77a2f5cab7915db1e720df0ee173190778c (patch)
tree6bd09eadaabcd3a5e268fd59b5204f76f60c1a18 /src/plugins/qmltooling
parentb103f6a6b9cc0ddf3df2788816a6fd98369b1b6d (diff)
qDelete([multi]hash.values()) -> qDelete([multi]hash)
Saves one iterationg of the container and unneeded allocation of a list Change-Id: I6d8110294343892b25f23520f66e0bf5df2c12cd Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
Diffstat (limited to 'src/plugins/qmltooling')
-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 2ce5610c7e..0cf2fa0246 100644
--- a/src/plugins/qmltooling/qmldbg_profiler/qqmlprofilerservice.cpp
+++ b/src/plugins/qmltooling/qmldbg_profiler/qqmlprofilerservice.cpp
@@ -57,7 +57,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);
}