summaryrefslogtreecommitdiffstats
path: root/sw/source/filter/xml/wrtxml.cxx
diff options
context:
space:
mode:
authorCédric Bosdonnat <cedricbosdo@openoffice.org>2010-11-25 17:08:45 +0100
committerCédric Bosdonnat <cedricbosdo@openoffice.org>2010-11-25 17:12:34 +0100
commitc16ba8a04fd4599e439e7e039705e41691c43acb (patch)
tree66a1c67973a674245548e10ff0746d1e473a7703 /sw/source/filter/xml/wrtxml.cxx
parentreplace DBG_UTIL -> OSL_DEBUG_LEVEL > 1 (diff)
downloadcore-c16ba8a04fd4599e439e7e039705e41691c43acb.tar.gz
core-c16ba8a04fd4599e439e7e039705e41691c43acb.zip
Removed DBG_UTIL from sw
* Fixed the different dbglevel builds * This needed to change all the sw local ASSERT to OSL_ENSURE...
Diffstat (limited to 'sw/source/filter/xml/wrtxml.cxx')
-rw-r--r--sw/source/filter/xml/wrtxml.cxx16
1 files changed, 8 insertions, 8 deletions
diff --git a/sw/source/filter/xml/wrtxml.cxx b/sw/source/filter/xml/wrtxml.cxx
index 5b91a2ef0966..4a6db2d80be0 100644
--- a/sw/source/filter/xml/wrtxml.cxx
+++ b/sw/source/filter/xml/wrtxml.cxx
@@ -92,7 +92,7 @@ sal_uInt32 SwXMLWriter::_Write( SfxMedium* pTargetMedium )
// Get service factory
uno::Reference< lang::XMultiServiceFactory > xServiceFactory =
comphelper::getProcessServiceFactory();
- ASSERT( xServiceFactory.is(),
+ OSL_ENSURE( xServiceFactory.is(),
"SwXMLWriter::Write: got no service manager" );
if( !xServiceFactory.is() )
return ERR_SWG_WRITE_ERROR;
@@ -105,7 +105,7 @@ sal_uInt32 SwXMLWriter::_Write( SfxMedium* pTargetMedium )
uno::Reference< document::XEmbeddedObjectResolver > xObjectResolver;
SvXMLEmbeddedObjectHelper *pObjectHelper = 0;
- ASSERT( xStg.is(), "Where is my storage?" );
+ OSL_ENSURE( xStg.is(), "Where is my storage?" );
pGraphicHelper = SvXMLGraphicHelper::Create( xStg,
GRAPHICHELPER_MODE_WRITE,
sal_False );
@@ -343,7 +343,7 @@ pGraphicHelper = SvXMLGraphicHelper::Create( xStg,
//Get model
uno::Reference< lang::XComponent > xModelComp(
pDoc->GetDocShell()->GetModel(), UNO_QUERY );
- ASSERT( xModelComp.is(), "XMLWriter::Write: got no model" );
+ OSL_ENSURE( xModelComp.is(), "XMLWriter::Write: got no model" );
if( !xModelComp.is() )
return ERR_SWG_WRITE_ERROR;
@@ -642,9 +642,9 @@ sal_Bool SwXMLWriter::WriteThroughComponent(
const Sequence<Any> & rArguments,
const Sequence<PropertyValue> & rMediaDesc )
{
- ASSERT( xOutputStream.is(), "I really need an output stream!" );
- ASSERT( xComponent.is(), "Need component!" );
- ASSERT( NULL != pServiceName, "Need component name!" );
+ OSL_ENSURE( xOutputStream.is(), "I really need an output stream!" );
+ OSL_ENSURE( xComponent.is(), "Need component!" );
+ OSL_ENSURE( NULL != pServiceName, "Need component name!" );
RTL_LOGFILE_CONTEXT_AUTHOR( aFilterLog, "sw", LOGFILE_AUTHOR,
"SwXMLWriter::WriteThroughComponent" );
@@ -655,7 +655,7 @@ sal_Bool SwXMLWriter::WriteThroughComponent(
String::CreateFromAscii(RTL_CONSTASCII_STRINGPARAM(
"com.sun.star.xml.sax.Writer")) ),
UNO_QUERY );
- ASSERT( xSaxWriter.is(), "can't instantiate XML writer" );
+ OSL_ENSURE( xSaxWriter.is(), "can't instantiate XML writer" );
if(!xSaxWriter.is())
return sal_False;
@@ -675,7 +675,7 @@ sal_Bool SwXMLWriter::WriteThroughComponent(
uno::Reference< document::XExporter > xExporter(
rFactory->createInstanceWithArguments(
OUString::createFromAscii(pServiceName), aArgs), UNO_QUERY);
- ASSERT( xExporter.is(),
+ OSL_ENSURE( xExporter.is(),
"can't instantiate export filter component" );
if( !xExporter.is() )
return sal_False;