diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2011-03-12 12:08:22 +0100 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2011-03-13 16:50:43 +0100 |
commit | 6495f3945ec0dd4cef37b8dfd5217562de4a3269 (patch) | |
tree | 8547adeed9ab7d2452d7efbe0c5cad284930695f /ucb | |
parent | 1f6580e985d5c3aa0f3161dd884e71a673e7a0b1 (diff) |
Move OSL_ENSURE(0,...) to OSL_FAIL(...)
Diffstat (limited to 'ucb')
-rw-r--r-- | ucb/source/ucp/expand/ucpexpand.cxx | 4 | ||||
-rw-r--r-- | ucb/source/ucp/odma/odma_content.cxx | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/ucb/source/ucp/expand/ucpexpand.cxx b/ucb/source/ucp/expand/ucpexpand.cxx index 29f73d81672b..81f110c81815 100644 --- a/ucb/source/ucp/expand/ucpexpand.cxx +++ b/ucb/source/ucp/expand/ucpexpand.cxx @@ -244,8 +244,8 @@ sal_Int32 ExpandContentProviderImpl::compareContentIds( catch (ucb::IllegalIdentifierException & exc) { (void) exc; // unused - OSL_ENSURE( - 0, ::rtl::OUStringToOString( + OSL_FAIL( + ::rtl::OUStringToOString( exc.Message, RTL_TEXTENCODING_UTF8 ).getStr() ); return -1; } diff --git a/ucb/source/ucp/odma/odma_content.cxx b/ucb/source/ucp/odma/odma_content.cxx index 4ef70bec95c9..e32bbdbbfef8 100644 --- a/ucb/source/ucp/odma/odma_content.cxx +++ b/ucb/source/ucp/odma/odma_content.cxx @@ -394,7 +394,7 @@ uno::Any SAL_CALL Content::execute( } catch(uno::Exception&) { - OSL_ENSURE(0,"Exception occurred while creating the file content!"); + OSL_FAIL("Exception occurred while creating the file content!"); } xDataSink->setInputStream( xIn ); } |