[Libreoffice-commits] core.git: unoxml/source
Michael Stahl
mstahl at redhat.com
Fri Aug 25 16:03:17 UTC 2017
unoxml/source/dom/documentbuilder.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit ae3ba018bfe066854fd787e2938441e4cc1316e1
Author: Michael Stahl <mstahl at redhat.com>
Date: Fri Aug 25 13:31:25 2017 +0200
unoxml: CDocumentBuilder: just catch all Exception
Turns out that XErrorHandler can throw SAXException too, which isn't
derived from RuntimeException.
Change-Id: Ib853805259b5b32a979e4f9a20297975431dee08
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",
More information about the Libreoffice-commits
mailing list