From 764a4056a712320647cd3331e2b26acdc8332da4 Mon Sep 17 00:00:00 2001 From: Albert Astals Cid Date: Fri, 23 Oct 2015 14:51:57 +0200 Subject: 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 --- src/plugins/qmltooling/qmldbg_profiler/qqmlprofilerservice.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/plugins') 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); } -- cgit v1.2.3