summaryrefslogtreecommitdiff
path: root/package/source/zipapi
diff options
context:
space:
mode:
Diffstat (limited to 'package/source/zipapi')
-rw-r--r--package/source/zipapi/ZipOutputStream.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/package/source/zipapi/ZipOutputStream.cxx b/package/source/zipapi/ZipOutputStream.cxx
index 1ba30b2cb3d3..4e08b7e8520d 100644
--- a/package/source/zipapi/ZipOutputStream.cxx
+++ b/package/source/zipapi/ZipOutputStream.cxx
@@ -129,7 +129,7 @@ void SAL_CALL ZipOutputStream::closeEntry( )
{
if (pEntry->nSize != aDeflater.getTotalIn())
{
- OSL_ENSURE(false,"Invalid entry size");
+ OSL_FAIL("Invalid entry size");
}
if (pEntry->nCompressedSize != aDeflater.getTotalOut())
{
@@ -139,7 +139,7 @@ void SAL_CALL ZipOutputStream::closeEntry( )
}
if (pEntry->nCrc != aCRC.getValue())
{
- OSL_ENSURE(false,"Invalid entry CRC-32");
+ OSL_FAIL("Invalid entry CRC-32");
}
}
else
@@ -156,10 +156,10 @@ void SAL_CALL ZipOutputStream::closeEntry( )
break;
case STORED:
if (!((pEntry->nFlag & 8) == 0))
- OSL_ENSURE ( false, "Serious error, one of compressed size, size or CRC was -1 in a STORED stream");
+ OSL_FAIL( "Serious error, one of compressed size, size or CRC was -1 in a STORED stream");
break;
default:
- OSL_ENSURE(false,"Invalid compression method");
+ OSL_FAIL("Invalid compression method");
break;
}
@@ -230,7 +230,7 @@ void SAL_CALL ZipOutputStream::finish( )
closeEntry();
if (aZipList.size() < 1)
- OSL_ENSURE(false,"Zip file must have at least one entry!\n");
+ OSL_FAIL("Zip file must have at least one entry!\n");
sal_Int32 nOffset= static_cast < sal_Int32 > (aChucker.GetPosition());
for (sal_Int32 i =0, nEnd = aZipList.size(); i < nEnd; i++)