From ae3ba018bfe066854fd787e2938441e4cc1316e1 Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Fri, 25 Aug 2017 13:31:25 +0200 Subject: unoxml: CDocumentBuilder: just catch all Exception Turns out that XErrorHandler can throw SAXException too, which isn't derived from RuntimeException. Change-Id: Ib853805259b5b32a979e4f9a20297975431dee08 --- unoxml/source/dom/documentbuilder.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'unoxml') diff --git a/unoxml/source/dom/documentbuilder.cxx b/unoxml/source/dom/documentbuilder.cxx index e8eb6097c23d..0b5aa5d583d7 100644 --- a/unoxml/source/dom/documentbuilder.cxx +++ b/unoxml/source/dom/documentbuilder.cxx @@ -292,7 +292,7 @@ namespace DOM pDocBuilder->getErrorHandler()->warning(::css::uno::Any(saxex)); } } - catch (const css::uno::RuntimeException &e) + catch (const css::uno::Exception &e) { // Protect lib2xml from UNO Exception SAL_WARN("unoxml", @@ -326,7 +326,7 @@ namespace DOM pDocBuilder->getErrorHandler()->error(::css::uno::Any(saxex)); } } - catch (const css::uno::RuntimeException &e) + catch (const css::uno::Exception &e) { // Protect lib2xml from UNO Exception SAL_WARN("unoxml", -- cgit