summaryrefslogtreecommitdiff
path: root/cppu/source/typelib
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2011-03-12 11:49:53 +0100
committerThomas Arnhold <thomas@arnhold.org>2011-03-12 14:19:48 +0100
commit6488e5f1207eb3f72e00cd1e2ada2e443c891373 (patch)
tree4e4424bf1aa525f86cf48ff5a0c1044cab0efaff /cppu/source/typelib
parent7769f9dbd4613a147a60d76e2df9fedd0f11289f (diff)
Move OSL_ENSURE(false,...) to OSL_FAIL(...)
Diffstat (limited to 'cppu/source/typelib')
-rw-r--r--cppu/source/typelib/typelib.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/cppu/source/typelib/typelib.cxx b/cppu/source/typelib/typelib.cxx
index f84350f27691..5b8caa298690 100644
--- a/cppu/source/typelib/typelib.cxx
+++ b/cppu/source/typelib/typelib.cxx
@@ -1309,7 +1309,7 @@ extern "C" void SAL_CALL typelib_typedescription_newInterfaceMethod(
sal_Int32 nOffset = rtl_ustr_lastIndexOfChar_WithLength(
pTypeName->buffer, pTypeName->length, ':');
if (nOffset <= 0 || pTypeName->buffer[nOffset - 1] != ':') {
- OSL_ENSURE(false, "Bad interface method type name");
+ OSL_FAIL("Bad interface method type name");
return;
}
rtl::OUString aInterfaceTypeName(pTypeName->buffer, nOffset - 1);
@@ -1322,7 +1322,7 @@ extern "C" void SAL_CALL typelib_typedescription_newInterfaceMethod(
|| !complete(
reinterpret_cast< typelib_TypeDescription ** >(&pInterface), false))
{
- OSL_ENSURE(false, "No interface corresponding to interface method");
+ OSL_FAIL("No interface corresponding to interface method");
return;
}
@@ -1402,7 +1402,7 @@ extern "C" void SAL_CALL typelib_typedescription_newExtendedInterfaceAttribute(
sal_Int32 nOffset = rtl_ustr_lastIndexOfChar_WithLength(
pTypeName->buffer, pTypeName->length, ':');
if (nOffset <= 0 || pTypeName->buffer[nOffset - 1] != ':') {
- OSL_ENSURE(false, "Bad interface attribute type name");
+ OSL_FAIL("Bad interface attribute type name");
return;
}
rtl::OUString aInterfaceTypeName(pTypeName->buffer, nOffset - 1);
@@ -1415,7 +1415,7 @@ extern "C" void SAL_CALL typelib_typedescription_newExtendedInterfaceAttribute(
|| !complete(
reinterpret_cast< typelib_TypeDescription ** >(&pInterface), false))
{
- OSL_ENSURE(false, "No interface corresponding to interface attribute");
+ OSL_FAIL("No interface corresponding to interface attribute");
return;
}