diff options
Diffstat (limited to 'extensions/test/sax/testsax.cxx')
-rw-r--r-- | extensions/test/sax/testsax.cxx | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/extensions/test/sax/testsax.cxx b/extensions/test/sax/testsax.cxx index 9aa0ee22f794..80ebe1dd9f13 100644 --- a/extensions/test/sax/testsax.cxx +++ b/extensions/test/sax/testsax.cxx @@ -43,11 +43,6 @@ #include <tools/string.hxx> #include <vos/conditn.hxx> -#if OSL_DEBUG_LEVEL == 0 -#define NDEBUG -#endif -#include <assert.h> - #include <smart/com/sun/star/io/XOutputStream.hxx> #include <smart/com/sun/star/xml/sax/SAXParseException.hxx> #include <smart/com/sun/star/xml/sax/XParser.hxx> @@ -309,12 +304,12 @@ Sequence< UString > OSaxParserTest::getWarnings(void) THRO XInputStreamRef createStreamFromSequence( const Sequence<BYTE> seqBytes , XMultiServiceFactoryRef &xSMgr ) { XInterfaceRef xOutStreamService = xSMgr->createInstance( L"com.sun.star.io.Pipe" ); - assert( xOutStreamService.is() ); + OSL_ASSERT( xOutStreamService.is() ); XOutputStreamRef rOutStream( xOutStreamService , USR_QUERY ); - assert( rOutStream.is() ); + OSL_ASSERT( rOutStream.is() ); XInputStreamRef rInStream( xOutStreamService , USR_QUERY ); - assert( rInStream.is() ); + OSL_ASSERT( rInStream.is() ); rOutStream->writeBytes( seqBytes ); rOutStream->flush(); @@ -442,7 +437,7 @@ public: // ExtendedDocumentHandler } virtual void endElement(const UString& aName) THROWS( (SAXException,UsrSystemException) ) { - assert( m_iLevel ); + OSL_ASSERT( m_iLevel ); m_iLevel --; if( m_bPrint ) { int i; |