loplugin:flatten in helpcompiler

Change-Id: I5d6b83b6976c115426f186958b749e48c60ba8f6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/91847
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
Noel Grandin
2020-04-07 20:03:33 +02:00
parent 523922ee9d
commit 4eb75e416e

View File

@@ -104,8 +104,9 @@ void IndexerPreProcessor::processDocument
xmlFreeDoc(resCaption); xmlFreeDoc(resCaption);
} }
if( m_xsltStylesheetPtrContent ) if( !m_xsltStylesheetPtrContent )
{ return;
xmlDocPtr resContent = xsltApplyStylesheet( m_xsltStylesheetPtrContent, doc, nullptr ); xmlDocPtr resContent = xsltApplyStylesheet( m_xsltStylesheetPtrContent, doc, nullptr );
xmlNodePtr pResNodeContent = resContent->xmlChildrenNode; xmlNodePtr pResNodeContent = resContent->xmlChildrenNode;
if( pResNodeContent ) if( pResNodeContent )
@@ -119,7 +120,6 @@ void IndexerPreProcessor::processDocument
} }
} }
xmlFreeDoc(resContent); xmlFreeDoc(resContent);
}
} }
namespace { namespace {
@@ -462,8 +462,9 @@ void HelpLinker::link()
helpKeyword.dump_DBHelp( keyWordFileName_DBHelp); helpKeyword.dump_DBHelp( keyWordFileName_DBHelp);
if( !bExtensionMode ) if( bExtensionMode )
{ return;
// New index // New index
for (auto const& additionalFile : additionalFiles) for (auto const& additionalFile : additionalFiles)
{ {
@@ -481,7 +482,6 @@ void HelpLinker::link()
fs::copy( fsAdditionalFileName, fsTargetName ); fs::copy( fsAdditionalFileName, fsTargetName );
} }
}
} }