Kaydet (Commit) 0e6c0d03 authored tarafından Thomas Arnhold's avatar Thomas Arnhold

Move DBG_ERROR to OSL_FAIL for strings GetBuffer()

üst ec8c1608
......@@ -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
}
......
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment