diff options
author | Jacek Wolszczak <shutdownrunner@gmail.com> | 2011-05-08 22:14:45 +0200 |
---|---|---|
committer | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2011-05-09 15:06:56 +0200 |
commit | 4cf350c27fbe9c84ec38daeffe2b57ebc515f8c2 (patch) | |
tree | de43a2b56eeb5717374c41844f90320502aaa76d /sw/source/filter/xml/wrtxml.cxx | |
parent | Resolving fdo#36931 : Load non blank chars from XML and check it's value. (diff) | |
download | core-4cf350c27fbe9c84ec38daeffe2b57ebc515f8c2.tar.gz core-4cf350c27fbe9c84ec38daeffe2b57ebc515f8c2.zip |
REPLACE DBG_stuff with OSL_ASSERT and OSL_FAIL
Diffstat (limited to 'sw/source/filter/xml/wrtxml.cxx')
-rw-r--r-- | sw/source/filter/xml/wrtxml.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sw/source/filter/xml/wrtxml.cxx b/sw/source/filter/xml/wrtxml.cxx index 3b06e51dbf24..71d862bbfe43 100644 --- a/sw/source/filter/xml/wrtxml.cxx +++ b/sw/source/filter/xml/wrtxml.cxx @@ -87,7 +87,7 @@ SwXMLWriter::~SwXMLWriter() sal_uInt32 SwXMLWriter::_Write( SfxMedium* pTargetMedium ) { - DBG_ASSERT( pTargetMedium, "No medium is provided!" ); + OSL_ENSURE( pTargetMedium, "No medium is provided!" ); // Get service factory uno::Reference< lang::XMultiServiceFactory > xServiceFactory = comphelper::getProcessServiceFactory(); @@ -532,9 +532,9 @@ sal_Bool SwXMLWriter::WriteThroughComponent( const Sequence<beans::PropertyValue> & rMediaDesc, sal_Bool bPlainStream ) { - DBG_ASSERT( xStg.is(), "Need storage!" ); - DBG_ASSERT( NULL != pStreamName, "Need stream name!" ); - DBG_ASSERT( NULL != pServiceName, "Need service name!" ); + OSL_ENSURE( xStg.is(), "Need storage!" ); + OSL_ENSURE( NULL != pStreamName, "Need stream name!" ); + OSL_ENSURE( NULL != pServiceName, "Need service name!" ); RTL_LOGFILE_TRACE_AUTHOR1( "sw", LOGFILE_AUTHOR, "SwXMLWriter::WriteThroughComponent : stream %s", @@ -580,7 +580,7 @@ sal_Bool SwXMLWriter::WriteThroughComponent( uno::Reference< beans::XPropertySet > xInfoSet; if( rArguments.getLength() > 0 ) rArguments.getConstArray()[0] >>= xInfoSet; - DBG_ASSERT( xInfoSet.is(), "missing property set" ); + OSL_ENSURE( xInfoSet.is(), "missing property set" ); if( xInfoSet.is() ) { OUString sPropName( RTL_CONSTASCII_USTRINGPARAM("StreamName") ); |