diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-07-26 12:20:59 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-07-27 08:28:27 +0200 |
commit | e6d79e896c540c3e758ebc4b730ca71987c2cee6 (patch) | |
tree | 5adbfa33c1503995f0b200771ae9beb0066a6a96 /helpcompiler/source/HelpLinker.cxx | |
parent | 1a400fc39023bcf471a6d4448acbf1a2afcb274c (diff) |
loplugin:returnconstant in helpcompiler
and fix scanForFiles to return false on error
Change-Id: I246e906de9985947be421d361340874c94a2102d
Reviewed-on: https://gerrit.libreoffice.org/58085
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'helpcompiler/source/HelpLinker.cxx')
-rw-r--r-- | helpcompiler/source/HelpLinker.cxx | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/helpcompiler/source/HelpLinker.cxx b/helpcompiler/source/HelpLinker.cxx index c8801b14a947..da6365fe4b7c 100644 --- a/helpcompiler/source/HelpLinker.cxx +++ b/helpcompiler/source/HelpLinker.cxx @@ -347,21 +347,9 @@ void HelpLinker::link() compactStylesheet, embeddStylesheet, module, lang, bExtensionMode ); HCDBG(std::cerr << "before compile of " << xhpFileName << std::endl); - bool success = hc.compile(); + hc.compile(); HCDBG(std::cerr << "after compile of " << xhpFileName << std::endl); - if (!success && !bExtensionMode) - { - std::stringstream aStrStream; - aStrStream << - "\nERROR: compiling help particle '" - << xhpFileName - << "' for language '" - << lang - << "' failed!"; - throw HelpProcessingException( HelpProcessingErrorClass::General, aStrStream.str() ); - } - if (!m_bCreateIndex) continue; |