aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmlxmlhttprequest.cpp
diff options
context:
space:
mode:
authorFrank Meerkoetter <frank.meerkoetter@basyskom.com>2016-04-17 21:29:25 +0200
committerFrank Meerkoetter <frank.meerkoetter@basyskom.com>2016-04-18 19:11:18 +0000
commitb69b7094d2906ca5412ce9291c347107f0b142eb (patch)
treed1cf1260d03b556552e3404125a6bc2bf7bde3db /src/qml/qml/qqmlxmlhttprequest.cpp
parentbdfc7ea605771192bf00ec234ed0f6149c24a084 (diff)
Replace handwritten loops with qDeleteAll
Change-Id: Ifb54fbd7d4a32dc23404e78a58c421a8be9e0e9a Reviewed-by: Robin Burchell <robin.burchell@viroteck.net>
Diffstat (limited to 'src/qml/qml/qqmlxmlhttprequest.cpp')
-rw-r--r--src/qml/qml/qqmlxmlhttprequest.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/qml/qml/qqmlxmlhttprequest.cpp b/src/qml/qml/qqmlxmlhttprequest.cpp
index eebaf27901..e9644839d1 100644
--- a/src/qml/qml/qqmlxmlhttprequest.cpp
+++ b/src/qml/qml/qqmlxmlhttprequest.cpp
@@ -117,10 +117,8 @@ class NodeImpl
public:
NodeImpl() : type(Element), document(0), parent(0) {}
virtual ~NodeImpl() {
- for (int ii = 0; ii < children.count(); ++ii)
- delete children.at(ii);
- for (int ii = 0; ii < attributes.count(); ++ii)
- delete attributes.at(ii);
+ qDeleteAll(children);
+ qDeleteAll(attributes);
}
// These numbers are copied from the Node IDL definition