summaryrefslogtreecommitdiff
path: root/sax
diff options
context:
space:
mode:
authorVladimir Glazunov <vg@openoffice.org>2009-12-09 19:10:19 +0100
committerVladimir Glazunov <vg@openoffice.org>2009-12-09 19:10:19 +0100
commitf6b4434260cdf07b3aa53b85734f9df5ca1f3710 (patch)
treee1845844eee9143f7839c1b6be9b864b62f22c05 /sax
parentf8ada8f2a93659e27928f3b5244c813de2c3847b (diff)
parent28b33be9d69a49140fa8fc4bbb77c968203b2bc1 (diff)
CWS-TOOLING: integrate CWS killnonpro
Diffstat (limited to 'sax')
-rw-r--r--sax/source/expatwrap/attrlistimpl.cxx7
-rw-r--r--sax/test/sax/testsax.cxx13
2 files changed, 4 insertions, 16 deletions
diff --git a/sax/source/expatwrap/attrlistimpl.cxx b/sax/source/expatwrap/attrlistimpl.cxx
index 1ec1128516fd..4eb07be50311 100644
--- a/sax/source/expatwrap/attrlistimpl.cxx
+++ b/sax/source/expatwrap/attrlistimpl.cxx
@@ -32,13 +32,6 @@
#include <vector>
-#if OSL_DEBUG_LEVEL == 0
-# ifndef NDEBUG
-# define NDEBUG
-# endif
-#endif
-#include <assert.h>
-
#include <cppuhelper/weak.hxx>
using namespace ::std;
diff --git a/sax/test/sax/testsax.cxx b/sax/test/sax/testsax.cxx
index 07491bae33ec..8fe989676993 100644
--- a/sax/test/sax/testsax.cxx
+++ b/sax/test/sax/testsax.cxx
@@ -31,11 +31,6 @@
#include <stdio.h>
#include <string.h>
-#if OSL_DEBUG_LEVEL == 0
-#define NDEBUG
-#endif
-#include <assert.h>
-
#include <osl/time.h>
#include <osl/diagnose.h>
@@ -245,12 +240,12 @@ Reference < XInputStream > createStreamFromSequence(
{
Reference < XInterface > xOutStreamService =
xSMgr->createInstance( OUString::createFromAscii("com.sun.star.io.Pipe") );
- assert( xOutStreamService.is() );
+ OSL_ASSERT( xOutStreamService.is() );
Reference< XOutputStream > rOutStream( xOutStreamService , UNO_QUERY );
- assert( rOutStream.is() );
+ OSL_ASSERT( rOutStream.is() );
Reference< XInputStream > rInStream( xOutStreamService , UNO_QUERY );
- assert( rInStream.is() );
+ OSL_ASSERT( rInStream.is() );
rOutStream->writeBytes( seqBytes );
rOutStream->flush();
@@ -379,7 +374,7 @@ public: // ExtendedDocumentHandler
virtual void SAL_CALL endElement(const OUString& aName) throw (SAXException,RuntimeException)
{
- assert( m_iLevel );
+ OSL_ASSERT( m_iLevel );
m_iLevel --;
if( m_bPrint ) {
int i;