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