summaryrefslogtreecommitdiff
path: root/sc/source/filter/xml/xmlwrap.cxx
diff options
context:
space:
mode:
authorJacek Wolszczak <shutdownrunner@gmail.com>2011-05-21 16:01:56 +0200
committerDavid Tardon <dtardon@redhat.com>2011-05-27 06:03:38 +0200
commit2fdfcbfad3a6d4e85a2ffa1206d1dd06dc9699a5 (patch)
tree5994165df230e5db4a955f548c1903d4b6216490 /sc/source/filter/xml/xmlwrap.cxx
parent8b569e74d6b671c13a57c5ad72ed360d194b2dda (diff)
Replace DBG_* with OSL_* in sc/source/filter
Diffstat (limited to 'sc/source/filter/xml/xmlwrap.cxx')
-rw-r--r--sc/source/filter/xml/xmlwrap.cxx20
1 files changed, 10 insertions, 10 deletions
diff --git a/sc/source/filter/xml/xmlwrap.cxx b/sc/source/filter/xml/xmlwrap.cxx
index 2a121a49f065..e10b125a01a4 100644
--- a/sc/source/filter/xml/xmlwrap.cxx
+++ b/sc/source/filter/xml/xmlwrap.cxx
@@ -95,7 +95,7 @@ ScXMLImportWrapper::ScXMLImportWrapper(ScDocument& rD, SfxMedium* pM, const uno:
pMedium(pM),
xStorage(xStor)
{
- DBG_ASSERT( pMedium || xStorage.is(), "ScXMLImportWrapper: Medium or Storage must be set" );
+ OSL_ENSURE( pMedium || xStorage.is(), "ScXMLImportWrapper: Medium or Storage must be set" );
}
uno::Reference <task::XStatusIndicator> ScXMLImportWrapper::GetStatusIndicator()
@@ -168,7 +168,7 @@ sal_uInt32 ScXMLImportWrapper::ImportFromComponent(uno::Reference<lang::XMultiSe
uno::Reference< beans::XPropertySet > xInfoSet;
if( aArgs.getLength() > 0 )
aArgs.getConstArray()[0] >>= xInfoSet;
- DBG_ASSERT( xInfoSet.is(), "missing property set" );
+ OSL_ENSURE( xInfoSet.is(), "missing property set" );
if( xInfoSet.is() )
{
rtl::OUString sPropName( RTL_CONSTASCII_USTRINGPARAM("StreamName") );
@@ -182,7 +182,7 @@ sal_uInt32 ScXMLImportWrapper::ImportFromComponent(uno::Reference<lang::XMultiSe
xServiceFactory->createInstanceWithArguments(
sComponentName, aArgs ),
uno::UNO_QUERY );
- DBG_ASSERT( xDocHandler.is(), "can't get Calc importer" );
+ OSL_ENSURE( xDocHandler.is(), "can't get Calc importer" );
uno::Reference<document::XImporter> xImporter( xDocHandler, uno::UNO_QUERY );
uno::Reference<lang::XComponent> xComponent( xModel, uno::UNO_QUERY );
if (xImporter.is())
@@ -240,7 +240,7 @@ sal_uInt32 ScXMLImportWrapper::ImportFromComponent(uno::Reference<lang::XMultiSe
}
else
{
- DBG_ASSERT( bMustBeSuccessfull, "Warnings are not supported" );
+ OSL_ENSURE( bMustBeSuccessfull, "Warnings are not supported" );
nReturn = *new StringErrorInfo( SCERR_IMPORT_FORMAT_ROWCOL, sErr,
ERRCODE_BUTTON_OK | ERRCODE_MSG_ERROR );
}
@@ -321,7 +321,7 @@ sal_Bool ScXMLImportWrapper::Import(sal_Bool bStylesOnly, ErrCode& nError)
uno::Reference<lang::XMultiServiceFactory> xServiceFactory =
comphelper::getProcessServiceFactory();
- DBG_ASSERT( xServiceFactory.is(), "got no service manager" );
+ OSL_ENSURE( xServiceFactory.is(), "got no service manager" );
if( !xServiceFactory.is() )
return false;
@@ -336,7 +336,7 @@ sal_Bool ScXMLImportWrapper::Import(sal_Bool bStylesOnly, ErrCode& nError)
uno::Reference<uno::XInterface> xXMLParser(
xServiceFactory->createInstance(
OUString(RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.xml.sax.Parser" )) ));
- DBG_ASSERT( xXMLParser.is(), "com.sun.star.xml.sax.Parser service missing" );
+ OSL_ENSURE( xXMLParser.is(), "com.sun.star.xml.sax.Parser service missing" );
if( !xXMLParser.is() )
return false;
@@ -661,7 +661,7 @@ sal_Bool ScXMLImportWrapper::ExportToComponent(uno::Reference<lang::XMultiServic
uno::Reference< beans::XPropertySet > xInfoSet;
if( aArgs.getLength() > 0 )
aArgs.getConstArray()[0] >>= xInfoSet;
- DBG_ASSERT( xInfoSet.is(), "missing property set" );
+ OSL_ENSURE( xInfoSet.is(), "missing property set" );
if( xInfoSet.is() )
{
rtl::OUString sPropName( RTL_CONSTASCII_USTRINGPARAM("StreamName") );
@@ -674,7 +674,7 @@ sal_Bool ScXMLImportWrapper::ExportToComponent(uno::Reference<lang::XMultiServic
uno::Reference<document::XFilter> xFilter(
xServiceFactory->createInstanceWithArguments( sComponentName , aArgs ),
uno::UNO_QUERY );
- DBG_ASSERT( xFilter.is(), "can't get exporter" );
+ OSL_ENSURE( xFilter.is(), "can't get exporter" );
uno::Reference<document::XExporter> xExporter( xFilter, uno::UNO_QUERY );
uno::Reference<lang::XComponent> xComponent( xModel, uno::UNO_QUERY );
if (xExporter.is())
@@ -744,13 +744,13 @@ sal_Bool ScXMLImportWrapper::Export(sal_Bool bStylesOnly)
RTL_LOGFILE_CONTEXT_AUTHOR ( aLog, "sc", "sb99857", "ScXMLImportWrapper::Export" );
uno::Reference<lang::XMultiServiceFactory> xServiceFactory(comphelper::getProcessServiceFactory());
- DBG_ASSERT( xServiceFactory.is(), "got no service manager" );
+ OSL_ENSURE( xServiceFactory.is(), "got no service manager" );
if( !xServiceFactory.is() )
return false;
uno::Reference<uno::XInterface> xWriter(xServiceFactory->createInstance(
OUString(RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.xml.sax.Writer" )) ));
- DBG_ASSERT( xWriter.is(), "com.sun.star.xml.sax.Writer service missing" );
+ OSL_ENSURE( xWriter.is(), "com.sun.star.xml.sax.Writer service missing" );
if(!xWriter.is())
return false;