summaryrefslogtreecommitdiffstats
path: root/src/xml
diff options
context:
space:
mode:
authorThierry Bastian <thierry.bastian@nokia.com>2009-08-17 10:01:21 (GMT)
committerThierry Bastian <thierry.bastian@nokia.com>2009-08-17 10:52:07 (GMT)
commit213e2c937b667dba7e4996b0857ae5791c6d5fc8 (patch)
treeb8db403c4859966fa7a18fcf413a00cf8e3eecd4 /src/xml
parent83940f25dba51a9942ab55ed8475fc7fc8a8da84 (diff)
downloadQt-213e2c937b667dba7e4996b0857ae5791c6d5fc8.zip
Qt-213e2c937b667dba7e4996b0857ae5791c6d5fc8.tar.gz
Qt-213e2c937b667dba7e4996b0857ae5791c6d5fc8.tar.bz2
Fixed coverity warnings
Diffstat (limited to 'src/xml')
-rw-r--r--src/xml/dom/qdom.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/xml/dom/qdom.cpp b/src/xml/dom/qdom.cpp
index a7dfaa9..85a31c7 100644
--- a/src/xml/dom/qdom.cpp
+++ b/src/xml/dom/qdom.cpp
@@ -1845,8 +1845,7 @@ QDomNodePrivate* QDomNodePrivate::removeChild(QDomNodePrivate* oldChild)
oldChild->prev = 0;
// We are no longer interested in the old node
- if (oldChild)
- oldChild->ref.deref();
+ oldChild->ref.deref();
return oldChild;
}
@@ -4355,7 +4354,7 @@ bool QDomAttr::specified() const
QDomElement QDomAttr::ownerElement() const
{
Q_ASSERT(impl->parent());
- if (!impl || !impl->parent()->isElement())
+ if (!impl->parent()->isElement())
return QDomElement();
return QDomElement((QDomElementPrivate*)(impl->parent()));
}