diff options
author | Frank Meerkoetter <frank.meerkoetter@basyskom.com> | 2016-04-17 21:29:25 +0200 |
---|---|---|
committer | Frank Meerkoetter <frank.meerkoetter@basyskom.com> | 2016-04-18 19:11:18 +0000 |
commit | b69b7094d2906ca5412ce9291c347107f0b142eb (patch) | |
tree | d1cf1260d03b556552e3404125a6bc2bf7bde3db /src/qml/qml/qqmlxmlhttprequest.cpp | |
parent | bdfc7ea605771192bf00ec234ed0f6149c24a084 (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.cpp | 6 |
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 |