summaryrefslogtreecommitdiff
path: root/ucb/source/ucp/file/bc.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'ucb/source/ucp/file/bc.cxx')
-rw-r--r--ucb/source/ucp/file/bc.cxx15
1 files changed, 5 insertions, 10 deletions
diff --git a/ucb/source/ucp/file/bc.cxx b/ucb/source/ucp/file/bc.cxx
index 444ba7055881..8242276ad604 100644
--- a/ucb/source/ucp/file/bc.cxx
+++ b/ucb/source/ucp/file/bc.cxx
@@ -546,14 +546,12 @@ BaseContent::getContentType()
}
else
{
- OSL_ENSURE( false,
- "BaseContent::getContentType - Property value was null!" );
+ OSL_FAIL( "BaseContent::getContentType - Property value was null!" );
}
}
catch ( sdbc::SQLException const & )
{
- OSL_ENSURE( false,
- "BaseContent::getContentType - Caught SQLException!" );
+ OSL_FAIL( "BaseContent::getContentType - Caught SQLException!" );
}
}
}
@@ -679,15 +677,13 @@ BaseContent::createNewContent(
if ( xRow->wasNull() )
{
IsDocument = false;
-// OSL_ENSURE( false,
-// "BaseContent::createNewContent - Property value was null!" );
+// OSL_FAIL( // "BaseContent::createNewContent - Property value was null!" );
// return Reference< XContent >();
}
}
catch ( sdbc::SQLException const & )
{
- OSL_ENSURE( false,
- "BaseContent::createNewContent - Caught SQLException!" );
+ OSL_FAIL( "BaseContent::createNewContent - Caught SQLException!" );
return Reference< XContent >();
}
@@ -1215,8 +1211,7 @@ void SAL_CALL BaseContent::insert( sal_Int32 nMyCommandIdentifier,
}
catch ( sdbc::SQLException const & )
{
- OSL_ENSURE( false,
- "BaseContent::insert - Caught SQLException!" );
+ OSL_FAIL( "BaseContent::insert - Caught SQLException!" );
contentTypeSet = false;
}