aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmlxmlhttprequest.cpp
diff options
context:
space:
mode:
authorFrank Meerkoetter <frank.meerkoetter@basyskom.com>2016-04-17 21:30:07 +0200
committerFrank Meerkoetter <frank.meerkoetter@basyskom.com>2016-04-18 09:28:18 +0000
commit8b7418ca1cd31aaf65ed57946fa5019ed7533b5a (patch)
tree15bf40b4236b6b8f00bc3ff5ea53e1ceb197855d /src/qml/qml/qqmlxmlhttprequest.cpp
parent8a546b889e14aad7202dc198bc9fe942ef7e94a6 (diff)
Cleanup. It is fine to call delete(0)
Change-Id: Ie42891136932fca99ae6237208618a3b3c2424d1 Reviewed-by: Robin Burchell <robin.burchell@viroteck.net>
Diffstat (limited to 'src/qml/qml/qqmlxmlhttprequest.cpp')
-rw-r--r--src/qml/qml/qqmlxmlhttprequest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/qml/qqmlxmlhttprequest.cpp b/src/qml/qml/qqmlxmlhttprequest.cpp
index af94ec757c..eebaf27901 100644
--- a/src/qml/qml/qqmlxmlhttprequest.cpp
+++ b/src/qml/qml/qqmlxmlhttprequest.cpp
@@ -160,7 +160,7 @@ class DocumentImpl : public QQmlRefCount, public NodeImpl
public:
DocumentImpl() : root(0) { type = Document; }
virtual ~DocumentImpl() {
- if (root) delete root;
+ delete root;
}
QString version;