From 6488e5f1207eb3f72e00cd1e2ada2e443c891373 Mon Sep 17 00:00:00 2001 From: Thomas Arnhold Date: Sat, 12 Mar 2011 11:49:53 +0100 Subject: Move OSL_ENSURE(false,...) to OSL_FAIL(...) --- cppu/source/typelib/typelib.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'cppu/source/typelib') 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; } -- cgit v1.2.1