summaryrefslogtreecommitdiff
path: root/unoxml/source/dom/documentbuilder.cxx
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2011-03-19 14:08:24 +0100
committerThomas Arnhold <thomas@arnhold.org>2011-03-19 14:08:24 +0100
commit05745bb195bd54933dbc2333fde1b147f894c0ea (patch)
tree418a5a4b9b6c5e7549a580d657389c00037f860b /unoxml/source/dom/documentbuilder.cxx
parent48b7ae25d490230ecb4cad6545d40098b81d7992 (diff)
Move OSL_ENSURE(sal_False,...) to OSL_FAIL(...)
Diffstat (limited to 'unoxml/source/dom/documentbuilder.cxx')
-rw-r--r--unoxml/source/dom/documentbuilder.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/unoxml/source/dom/documentbuilder.cxx b/unoxml/source/dom/documentbuilder.cxx
index b65fffc632da..c1cefe1efc9c 100644
--- a/unoxml/source/dom/documentbuilder.cxx
+++ b/unoxml/source/dom/documentbuilder.cxx
@@ -94,7 +94,7 @@ namespace DOM
is.aInputStream = aContent.openStream();
} catch (com::sun::star::uno::Exception) {
- OSL_ENSURE(sal_False, "exception in default entity resolver");
+ OSL_FAIL("exception in default entity resolver");
is.aInputStream = Reference< XInputStream >();
}
return is;
@@ -228,7 +228,7 @@ namespace DOM
return nread;
} catch (com::sun::star::uno::Exception& ex) {
(void) ex;
- OSL_ENSURE(sal_False, OUStringToOString(ex.Message, RTL_TEXTENCODING_UTF8).getStr());
+ OSL_FAIL(OUStringToOString(ex.Message, RTL_TEXTENCODING_UTF8).getStr());
return -1;
}
}
@@ -248,7 +248,7 @@ namespace DOM
return 0;
} catch (com::sun::star::uno::Exception& ex) {
(void) ex;
- OSL_ENSURE(sal_False, OUStringToOString(ex.Message, RTL_TEXTENCODING_UTF8).getStr());
+ OSL_FAIL(OUStringToOString(ex.Message, RTL_TEXTENCODING_UTF8).getStr());
return -1;
}
}
@@ -300,7 +300,7 @@ namespace DOM
OUStringBuffer buf(OUString(RTL_CONSTASCII_USTRINGPARAM("libxml2 warning\n")));
buf.append(make_error_message(static_cast< xmlParserCtxtPtr >(ctx)));
OString msg = OUStringToOString(buf.makeStringAndClear(), RTL_TEXTENCODING_ASCII_US);
- OSL_ENSURE(sal_False, msg.getStr());
+ OSL_FAIL(msg.getStr());
}
// default error handler triggers assertion
@@ -309,7 +309,7 @@ namespace DOM
OUStringBuffer buf(OUString(RTL_CONSTASCII_USTRINGPARAM("libxml2 error\n")));
buf.append(make_error_message(static_cast< xmlParserCtxtPtr >(ctx)));
OString msg = OUStringToOString(buf.makeStringAndClear(), RTL_TEXTENCODING_ASCII_US);
- OSL_ENSURE(sal_False, msg.getStr());
+ OSL_FAIL(msg.getStr());
}
} // extern "C"