diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2011-03-12 11:47:36 +0100 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2011-03-12 14:19:17 +0100 |
commit | d86e9a3906b5c2c51a7a04dac0a63c9f74196991 (patch) | |
tree | 6edeb296b93516795e8159f8c2ee04c544cc1874 /sax | |
parent | e6216e1ce6b399a10019b5d11b6fef6961fc0f74 (diff) |
Move OSL_ENSURE(false,...) to OSL_FAIL(...)
Diffstat (limited to 'sax')
-rw-r--r-- | sax/source/expatwrap/saxwriter.cxx | 2 | ||||
-rw-r--r-- | sax/source/tools/converter.cxx | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/sax/source/expatwrap/saxwriter.cxx b/sax/source/expatwrap/saxwriter.cxx index 122928f1d934..1417fb644679 100644 --- a/sax/source/expatwrap/saxwriter.cxx +++ b/sax/source/expatwrap/saxwriter.cxx @@ -457,7 +457,7 @@ inline sal_Bool SaxWriterHelper::convertToXML( const sal_Unicode * pStr, } else { - OSL_ENSURE( false, "illegal Unicode character" ); + OSL_FAIL( "illegal Unicode character" ); bRet = sal_False; } diff --git a/sax/source/tools/converter.cxx b/sax/source/tools/converter.cxx index fd93521261de..fd4c1de5a509 100644 --- a/sax/source/tools/converter.cxx +++ b/sax/source/tools/converter.cxx @@ -270,7 +270,7 @@ void Converter::convertMeasure( OUStringBuffer& rBuffer, sal_Int16 nSourceUnit /* = MeasureUnit::MM_100TH */, sal_Int16 nTargetUnit /* = MeasureUnit::INCH */ ) { - OSL_ENSURE( false, "Converter::convertMeasure - not implemented, tools/BigInt needs replacement" ); + OSL_FAIL( "Converter::convertMeasure - not implemented, tools/BigInt needs replacement" ); (void)rBuffer; (void)nMeasure; (void)nSourceUnit; @@ -661,7 +661,7 @@ bool Converter::convertDuration(double& rfTime, { //! how many days is a year or month? - OSL_ENSURE( false, "years or months in duration: not implemented"); + OSL_FAIL( "years or months in duration: not implemented"); bSuccess = false; } else |