diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2011-03-01 19:06:21 +0100 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2011-03-02 15:01:50 +0100 |
commit | afd5abda6b9e82c8d98a0002a29f1e81522f4ef4 (patch) | |
tree | f54f6d70a0f1157f0845581964dbb45b102a26de /lotuswordpro | |
parent | bb552b9b9ebd4ffa4f7110952916cdab2a1a3b36 (diff) |
Move DBG_ERROR to OSL_FAIL
Diffstat (limited to 'lotuswordpro')
-rw-r--r-- | lotuswordpro/source/filter/lwpoleobject.cxx | 2 | ||||
-rw-r--r-- | lotuswordpro/source/filter/schxmlwrapper.cxx | 16 |
2 files changed, 9 insertions, 9 deletions
diff --git a/lotuswordpro/source/filter/lwpoleobject.cxx b/lotuswordpro/source/filter/lwpoleobject.cxx index d17eef9e1bb0..58708c94a873 100644 --- a/lotuswordpro/source/filter/lwpoleobject.cxx +++ b/lotuswordpro/source/filter/lwpoleobject.cxx @@ -375,7 +375,7 @@ void LwpOlePres::Write( SvStream & rStm ) } else { - DBG_ERROR( "unknown format" ); + OSL_FAIL( "unknown format" ); } ULONG nEndPos = rStm.Tell(); rStm.Seek( nPos ); diff --git a/lotuswordpro/source/filter/schxmlwrapper.cxx b/lotuswordpro/source/filter/schxmlwrapper.cxx index 7d5fb952968b..82ca112d90a6 100644 --- a/lotuswordpro/source/filter/schxmlwrapper.cxx +++ b/lotuswordpro/source/filter/schxmlwrapper.cxx @@ -268,7 +268,7 @@ sal_Int32 SchXMLWrapper::Import() if( !mxModel.is() ) { - DBG_ERROR("Got NO Model in XMLImport"); + OSL_FAIL("Got NO Model in XMLImport"); return sal_False; } @@ -276,7 +276,7 @@ sal_Int32 SchXMLWrapper::Import() if( !xServiceInfo.is() || !xServiceInfo->supportsService( OUString( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.chart.ChartDocument" ) ) ) ) { - DBG_ERROR( "Model is no ChartDocument in XMLImport" ); + OSL_FAIL( "Model is no ChartDocument in XMLImport" ); return sal_False; } @@ -284,7 +284,7 @@ sal_Int32 SchXMLWrapper::Import() if( !xServiceFactory.is() ) { - DBG_ERROR( "XMLReader::Read: got no service manager" ); + OSL_FAIL( "XMLReader::Read: got no service manager" ); return sal_False; } @@ -295,7 +295,7 @@ sal_Int32 SchXMLWrapper::Import() if( ! xXMLParser.is() ) { - DBG_ERROR( "com.sun.star.xml.sax.Parser service missing" ); + OSL_FAIL( "com.sun.star.xml.sax.Parser service missing" ); return sal_False; } @@ -403,7 +403,7 @@ sal_Bool SchXMLWrapper::Export() { if( !mxModel.is() ) { - DBG_ERROR("Got NO Model in XMLExport"); + OSL_FAIL("Got NO Model in XMLExport"); return sal_False; } @@ -412,7 +412,7 @@ sal_Bool SchXMLWrapper::Export() if( ! xServiceInfo.is() || !xServiceInfo->supportsService( OUString( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.chart.ChartDocument" ) ) ) ) { - DBG_ERROR( "Model is no ChartDocument in XMLExport" ); + OSL_FAIL( "Model is no ChartDocument in XMLExport" ); return sal_False; } @@ -420,7 +420,7 @@ sal_Bool SchXMLWrapper::Export() if( !xServiceFactory.is() ) { - DBG_ERROR( "got no service manager" ); + OSL_FAIL( "got no service manager" ); return sal_False; } @@ -429,7 +429,7 @@ sal_Bool SchXMLWrapper::Export() if( !xWriter.is() ) { - DBG_ERROR( "com.sun.star.xml.sax.Writer service missing" ); + OSL_FAIL( "com.sun.star.xml.sax.Writer service missing" ); return sal_False; } uno::Reference<xml::sax::XDocumentHandler > xHandler( xWriter, uno::UNO_QUERY ); |