summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSergio Martins <sergio.martins@kdab.com>2015-06-21 14:52:28 +0100
committerSérgio Martins <sergio.martins@kdab.com>2015-06-22 14:03:29 +0000
commit526fd8bd3d9ef112399d1cae6c0dfa094525d33e (patch)
treee0f7674622f114dcbc3f0c7c05ee673c6d07f17d /src
parentdf7c333ada4345d396c5eef9eeccdd7c08a26092 (diff)
downloadqtlocation-526fd8bd3d9ef112399d1cae6c0dfa094525d33e.tar.gz
Fix inefficient usage of qDeleteAll()
Don't iterate through all items to create a temporary QList we don't need. Change-Id: I4acc4fa6f8c845b836d35c8ad50a86942e31b36c Reviewed-by: Marc Mutz <marc.mutz@kdab.com> Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
Diffstat (limited to 'src')
-rw-r--r--src/location/maps/qgeomapscene.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/location/maps/qgeomapscene.cpp b/src/location/maps/qgeomapscene.cpp
index 4e6bb4a6..a25405ec 100644
--- a/src/location/maps/qgeomapscene.cpp
+++ b/src/location/maps/qgeomapscene.cpp
@@ -582,7 +582,7 @@ public:
~QGeoMapRootNode()
{
- qDeleteAll(textures.values());
+ qDeleteAll(textures);
}
void setClipRect(const QRect &rect)