diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2011-03-03 13:00:33 +0100 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2011-03-11 23:53:36 +0100 |
commit | 0e6c0d031436952a2ac5eca9dc9107bf4a7d09bc (patch) | |
tree | 9a16a8ba83dae5e671128d5295dbec2e1ad1fce0 /sd/source | |
parent | ec8c1608da52de046fb571d93f45dcbf8c765fde (diff) |
Move DBG_ERROR to OSL_FAIL for strings GetBuffer()
Diffstat (limited to 'sd/source')
-rw-r--r-- | sd/source/core/CustomAnimationPreset.cxx | 2 | ||||
-rw-r--r-- | sd/source/filter/xml/sdxmlwrp.cxx | 12 |
2 files changed, 7 insertions, 7 deletions
diff --git a/sd/source/core/CustomAnimationPreset.cxx b/sd/source/core/CustomAnimationPreset.cxx index cedce0f46e22..009183bca3df 100644 --- a/sd/source/core/CustomAnimationPreset.cxx +++ b/sd/source/core/CustomAnimationPreset.cxx @@ -550,7 +550,7 @@ void CustomAnimationPresets::importPresets( const Reference< XMultiServiceFactor { ByteString aTmp( "sd::CustomAnimationPresets::importPresets(), invalid preset id!\n" ); aTmp += ByteString( aMissedPresetIds, RTL_TEXTENCODING_ASCII_US ); - DBG_ERROR( aTmp.GetBuffer() ); + OSL_FAIL( aTmp.GetBuffer() ); } #endif } diff --git a/sd/source/filter/xml/sdxmlwrp.cxx b/sd/source/filter/xml/sdxmlwrp.cxx index 7c8e648778ed..afeab7f1946d 100644 --- a/sd/source/filter/xml/sdxmlwrp.cxx +++ b/sd/source/filter/xml/sdxmlwrp.cxx @@ -287,7 +287,7 @@ sal_Int32 ReadThroughComponent( #if OSL_DEBUG_LEVEL > 1 ByteString aError( "SAX parse exception catched while importing:\n" ); aError += ByteString( String( r.Message), RTL_TEXTENCODING_ASCII_US ); - DBG_ERROR( aError.GetBuffer() ); + OSL_FAIL( aError.GetBuffer() ); #endif String sErr( String::CreateFromInt32( r.LineNumber )); @@ -321,7 +321,7 @@ sal_Int32 ReadThroughComponent( #if OSL_DEBUG_LEVEL > 1 ByteString aError( "SAX exception catched while importing:\n" ); aError += ByteString( String( r.Message), RTL_TEXTENCODING_ASCII_US ); - DBG_ERROR( aError.GetBuffer() ); + OSL_FAIL( aError.GetBuffer() ); #endif return SD_XML_READERROR; } @@ -331,7 +331,7 @@ sal_Int32 ReadThroughComponent( #if OSL_DEBUG_LEVEL > 1 ByteString aError( "Zip exception catched while importing:\n" ); aError += ByteString( String( r.Message), RTL_TEXTENCODING_ASCII_US ); - DBG_ERROR( aError.GetBuffer() ); + OSL_FAIL( aError.GetBuffer() ); #endif return ERRCODE_IO_BROKENPACKAGE; } @@ -341,7 +341,7 @@ sal_Int32 ReadThroughComponent( #if OSL_DEBUG_LEVEL > 1 ByteString aError( "IO exception catched while importing:\n" ); aError += ByteString( String( r.Message), RTL_TEXTENCODING_ASCII_US ); - DBG_ERROR( aError.GetBuffer() ); + OSL_FAIL( aError.GetBuffer() ); #endif return SD_XML_READERROR; } @@ -351,7 +351,7 @@ sal_Int32 ReadThroughComponent( #if OSL_DEBUG_LEVEL > 1 ByteString aError( "uno exception catched while importing:\n" ); aError += ByteString( String( r.Message), RTL_TEXTENCODING_ASCII_US ); - DBG_ERROR( aError.GetBuffer() ); + OSL_FAIL( aError.GetBuffer() ); #endif return SD_XML_READERROR; } @@ -1093,7 +1093,7 @@ sal_Bool SdXMLFilter::Export() #if OSL_DEBUG_LEVEL > 1 ByteString aError( "uno Exception caught while exporting:\n" ); aError += ByteString( String( e.Message), RTL_TEXTENCODING_ASCII_US ); - DBG_ERROR( aError.GetBuffer() ); + OSL_FAIL( aError.GetBuffer() ); #endif bDocRet = sal_False; } |