Move OSL_ENSURE(false,...) to OSL_FAIL(...)
This commit is contained in:
@@ -73,7 +73,7 @@ namespace slideshow
|
||||
}
|
||||
catch (uno::Exception &)
|
||||
{
|
||||
OSL_ENSURE( false, rtl::OUStringToOString(
|
||||
OSL_FAIL( rtl::OUStringToOString(
|
||||
comphelper::anyToString(
|
||||
cppu::getCaughtException() ),
|
||||
RTL_TEXTENCODING_UTF8 ).getStr() );
|
||||
@@ -141,8 +141,7 @@ namespace slideshow
|
||||
// since this will also capture segmentation
|
||||
// violations and the like. In such a case, we
|
||||
// still better let our clients now...
|
||||
OSL_ENSURE( false,
|
||||
rtl::OUStringToOString(
|
||||
OSL_FAIL( rtl::OUStringToOString(
|
||||
comphelper::anyToString( cppu::getCaughtException() ),
|
||||
RTL_TEXTENCODING_UTF8 ).getStr() );
|
||||
}
|
||||
|
Reference in New Issue
Block a user