summaryrefslogtreecommitdiff
path: root/sc/source/filter/xml/xmlwrap.cxx
diff options
context:
space:
mode:
authorJacek Wolszczak <shutdownrunner@gmail.com>2011-05-21 18:05:48 +0200
committerDavid Tardon <dtardon@redhat.com>2011-05-27 06:03:38 +0200
commit15a1ac94cdbe94c49e77d9420605df9803713fa0 (patch)
tree2a4fd9aea53f573e20cf6c3271abcea9230a9953 /sc/source/filter/xml/xmlwrap.cxx
parent2fdfcbfad3a6d4e85a2ffa1206d1dd06dc9699a5 (diff)
Follow-up of DBG_* removal
Diffstat (limited to 'sc/source/filter/xml/xmlwrap.cxx')
-rw-r--r--sc/source/filter/xml/xmlwrap.cxx11
1 files changed, 5 insertions, 6 deletions
diff --git a/sc/source/filter/xml/xmlwrap.cxx b/sc/source/filter/xml/xmlwrap.cxx
index e10b125a01a4..6c8fd7e5e9c3 100644
--- a/sc/source/filter/xml/xmlwrap.cxx
+++ b/sc/source/filter/xml/xmlwrap.cxx
@@ -33,7 +33,6 @@
#include <rsc/rscsfx.hxx>
#include <sfx2/docfile.hxx>
#include <sfx2/objsh.hxx>
-#include <tools/debug.hxx>
#include <osl/diagnose.h>
#include <comphelper/processfactory.hxx>
#include <unotools/streamwrap.hxx>
@@ -220,7 +219,7 @@ sal_uInt32 ScXMLImportWrapper::ImportFromComponent(uno::Reference<lang::XMultiSe
else
{
-#ifdef DBG_UTIL
+#if OSL_DEBUG_LEVEL > 0
ByteString aError( "SAX parse exception catched while importing:\n" );
aError += ByteString( String( r.Message), RTL_TEXTENCODING_ASCII_US );
OSL_FAIL( aError.GetBuffer() );
@@ -256,7 +255,7 @@ sal_uInt32 ScXMLImportWrapper::ImportFromComponent(uno::Reference<lang::XMultiSe
else
{
-#ifdef DBG_UTIL
+#if OSL_DEBUG_LEVEL > 0
ByteString aError( "SAX exception catched while importing:\n" );
aError += ByteString( String( r.Message), RTL_TEXTENCODING_ASCII_US );
OSL_FAIL( aError.GetBuffer() );
@@ -268,7 +267,7 @@ sal_uInt32 ScXMLImportWrapper::ImportFromComponent(uno::Reference<lang::XMultiSe
}
catch( packages::zip::ZipIOException& r )
{
-#ifdef DBG_UTIL
+#if OSL_DEBUG_LEVEL > 0
ByteString aError( "Zip exception catched while importing:\n" );
aError += ByteString( String( r.Message), RTL_TEXTENCODING_ASCII_US );
OSL_FAIL( aError.GetBuffer() );
@@ -279,7 +278,7 @@ sal_uInt32 ScXMLImportWrapper::ImportFromComponent(uno::Reference<lang::XMultiSe
}
catch( io::IOException& r )
{
-#ifdef DBG_UTIL
+#if OSL_DEBUG_LEVEL > 0
ByteString aError( "IO exception catched while importing:\n" );
aError += ByteString( String( r.Message), RTL_TEXTENCODING_ASCII_US );
OSL_FAIL( aError.GetBuffer() );
@@ -290,7 +289,7 @@ sal_uInt32 ScXMLImportWrapper::ImportFromComponent(uno::Reference<lang::XMultiSe
}
catch( uno::Exception& r )
{
-#ifdef DBG_UTIL
+#if OSL_DEBUG_LEVEL > 0
ByteString aError( "uno exception catched while importing:\n" );
aError += ByteString( String( r.Message), RTL_TEXTENCODING_ASCII_US );
OSL_FAIL( aError.GetBuffer() );