diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2015-08-18 19:07:17 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2015-08-18 19:07:17 (GMT) |
commit | 48ced3ea8071b3141216482e2821e10250910947 (patch) | |
tree | 547a30cd6cc5015b3e85170cd944e14224e7ae9c /src/htmldocvisitor.cpp | |
parent | 625e7a17bc708a32d52158ac24e7308c9d62fe84 (diff) | |
download | Doxygen-48ced3ea8071b3141216482e2821e10250910947.zip Doxygen-48ced3ea8071b3141216482e2821e10250910947.tar.gz Doxygen-48ced3ea8071b3141216482e2821e10250910947.tar.bz2 |
Fixed various issues found by PVS-Studio.
Diffstat (limited to 'src/htmldocvisitor.cpp')
-rw-r--r-- | src/htmldocvisitor.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/htmldocvisitor.cpp b/src/htmldocvisitor.cpp index 54dca32..296a957 100644 --- a/src/htmldocvisitor.cpp +++ b/src/htmldocvisitor.cpp @@ -1037,7 +1037,7 @@ void HtmlDocVisitor::visitPre(DocPara *p) void HtmlDocVisitor::visitPost(DocPara *p) { bool needsTag = FALSE; - if (p && p->parent()) + if (p->parent()) { switch (p->parent()->kind()) { @@ -1067,7 +1067,7 @@ void HtmlDocVisitor::visitPost(DocPara *p) // the paragraph (<ul>,<dl>,<table>) then that will already have ended the // paragraph and we don't need to do it here int nodeIndex = p->children().count()-1; - if (p && nodeIndex>=0) + if (nodeIndex>=0) { while (nodeIndex>=0 && p->children().at(nodeIndex)->kind()==DocNode::Kind_WhiteSpace) { |