diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2023-02-13 16:59:14 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2023-02-13 17:40:42 +0000 |
commit | 304ebfad5193c857e4edf18cb05d61b6ccc1f7d0 (patch) | |
tree | 30c66feaece272cbbb49e4e86a6d1732d95a8654 | |
parent | 6b2e8bb614ee4cc755766c8b7590df0c10f89a27 (diff) |
XSLT2Transformer::create should always succeed
Change-Id: Ie2aa4fe48da2362ff1a88fa44a51bed498a4f432
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/146935
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
-rw-r--r-- | filter/source/xsltfilter/XSLTFilter.cxx | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/filter/source/xsltfilter/XSLTFilter.cxx b/filter/source/xsltfilter/XSLTFilter.cxx index f08933276055..dd4b8551fce0 100644 --- a/filter/source/xsltfilter/XSLTFilter.cxx +++ b/filter/source/xsltfilter/XSLTFilter.cxx @@ -236,17 +236,7 @@ namespace XSLT // service name there) if (rTransformer.toBoolean() || rTransformer.startsWith("com.sun.")) { - try - { - xTransformer = xslt::XSLT2Transformer::create(m_xContext, rArgs); - } - catch (const Exception&) - { - // TODO: put a dialog telling about the need to install - // xslt2-transformer extension here - SAL_WARN("filter.xslt", "could not create XSLT 2.0 transformer"); - throw; - } + xTransformer = xslt::XSLT2Transformer::create(m_xContext, rArgs); } // instantiation of XSLT 2.0 transformer service failed, or the |