summaryrefslogtreecommitdiff
path: root/ucb
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2011-03-12 12:08:22 +0100
committerThomas Arnhold <thomas@arnhold.org>2011-03-13 16:50:43 +0100
commit2805bb8f967eaa6ec9bcae717251408cd78ae3c0 (patch)
tree791db68ee4035b2da06073dd5f1e01c5d6547194 /ucb
parent5c7b859266e75bf47e9994fef089253a2228f277 (diff)
Move OSL_ENSURE(0,...) to OSL_FAIL(...)
Diffstat (limited to 'ucb')
-rw-r--r--ucb/source/ucp/expand/ucpexpand.cxx4
-rw-r--r--ucb/source/ucp/odma/odma_content.cxx2
2 files changed, 3 insertions, 3 deletions
diff --git a/ucb/source/ucp/expand/ucpexpand.cxx b/ucb/source/ucp/expand/ucpexpand.cxx
index b40e7f7d47..0bfe5e3e9c 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 e578ebd78f..cbbe83961d 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 );
}