diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2011-03-12 11:29:41 +0100 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2011-03-12 14:12:21 +0100 |
commit | 530b835583553dbe9af1481ce7082f6117446370 (patch) | |
tree | 1257c62afe092b06c67413bd679f5387ae9053d9 /sdext | |
parent | l10n: don't extract strings from localized NLPSolver properties (diff) | |
download | core-530b835583553dbe9af1481ce7082f6117446370.tar.gz core-530b835583553dbe9af1481ce7082f6117446370.zip |
Move OSL_ENSURE(false,...) to OSL_FAIL(...)
Diffstat (limited to 'sdext')
-rw-r--r-- | sdext/source/pdfimport/filterdet.cxx | 4 | ||||
-rw-r--r-- | sdext/source/pdfimport/tree/imagecontainer.cxx | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/sdext/source/pdfimport/filterdet.cxx b/sdext/source/pdfimport/filterdet.cxx index 64c58ed58e74..d6afc41dbde0 100644 --- a/sdext/source/pdfimport/filterdet.cxx +++ b/sdext/source/pdfimport/filterdet.cxx @@ -78,7 +78,7 @@ namespace { switch(nIndex) { default: - OSL_ENSURE(false,"Unexpected case!"); + OSL_FAIL("Unexpected case!"); break; case DRAW_INDEX: bDrawState=sal_True; @@ -520,7 +520,7 @@ rtl::OUString SAL_CALL PDFDetector::detect( uno::Sequence< beans::PropertyValue break; default: - OSL_ENSURE(false,"Unexpected case"); + OSL_FAIL("Unexpected case"); } aOutTypeName = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("pdf_Portable_Document_Format") ); diff --git a/sdext/source/pdfimport/tree/imagecontainer.cxx b/sdext/source/pdfimport/tree/imagecontainer.cxx index 7acc47e7e6c3..9be7bb5de0dd 100644 --- a/sdext/source/pdfimport/tree/imagecontainer.cxx +++ b/sdext/source/pdfimport/tree/imagecontainer.cxx @@ -146,7 +146,7 @@ void ImageContainer::writeBase64EncodedStream( ImageId nId, EmitContext& rContex uno::Sequence<sal_Int8> aData; if( !(pValue->Value >>= aData) ) - OSL_ENSURE(false,"Wrong data type"); + OSL_FAIL("Wrong data type"); rContext.rEmitter.write( encodeBase64( aData.getConstArray(), aData.getLength() )); } |