Base: fix several warnings reported by code analyzers

This commit is contained in:
wmayer
2022-08-02 13:04:50 +02:00
parent c6de515b20
commit 7824d7b1df
9 changed files with 40 additions and 27 deletions

View File

@@ -796,9 +796,9 @@ void ParameterGrp::RemoveBlob(const char* /*Name*/)
DOMElement *pcElem = FindElement(_pGroupNode,"FCGrp",Name);
// if not return
if(!pcElem)
return;
return;
else
_pGroupNode->removeChild(pcElem);
_pGroupNode->removeChild(pcElem);
*/
}
@@ -1643,10 +1643,10 @@ short DOMPrintFilter::acceptNode(const DOMNode* node) const
case DOMNode::ELEMENT_NODE: {
// for element whose name is "person", skip it
//if (XMLString::compareString(node->getNodeName(), element_person)==0)
// return DOMNodeFilter::FILTER_SKIP;
// return DOMNodeFilter::FILTER_SKIP;
// for element whose name is "line", reject it
//if (XMLString::compareString(node->getNodeName(), element_link)==0)
// return DOMNodeFilter::FILTER_REJECT;
// return DOMNodeFilter::FILTER_REJECT;
// for rest, accept it
return DOMNodeFilter::FILTER_ACCEPT;