summaryrefslogtreecommitdiff
path: root/extensions/test/sax/testsax.cxx
diff options
context:
space:
mode:
authorJoachim Lingner <jl@openoffice.org>2010-01-12 15:55:12 +0100
committerJoachim Lingner <jl@openoffice.org>2010-01-12 15:55:12 +0100
commit76ea65d536125dd98a5f9b21eec6d9d8435bdfef (patch)
treec12e914caf800581493e89b8ade937de684e02ad /extensions/test/sax/testsax.cxx
parentcbb9a21b81b0753fac59d4e12963492a3c1bbcdc (diff)
parent8a5b59989048d67b567819ee2038d4bff54ca184 (diff)
jl145: merge with DEV300_m69
Diffstat (limited to 'extensions/test/sax/testsax.cxx')
-rw-r--r--extensions/test/sax/testsax.cxx13
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;