diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2011-03-12 11:29:14 +0100 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2011-03-12 14:12:11 +0100 |
commit | 5ad692096323fcdf03823352b70bb7e71660919c (patch) | |
tree | fd3b578bd023400fc9daeed37cad2dbe4a5c9004 /package | |
parent | 678cbfa572eacbbdbd989b0d7c39ac6d33583e2a (diff) |
Move OSL_ENSURE(false,...) to OSL_FAIL(...)
Diffstat (limited to 'package')
-rw-r--r-- | package/source/zipapi/ZipOutputStream.cxx | 10 |
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++) |