Move DBG_ERROR to OSL_FAIL for strings foo().GetBuffer()
This commit is contained in:
parent
f9273f454b
commit
b228332fe6
3 changed files with 10 additions and 10 deletions
|
@ -1853,7 +1853,7 @@ String BasicFrame::GenRealString( const String &aResString )
|
|||
}
|
||||
else
|
||||
{
|
||||
DBG_ERROR( CByteString("Unknown replacement in String: ").Append( ByteString( aResult.Copy(nStart,nEnd-nStart), RTL_TEXTENCODING_UTF8 ) ).GetBuffer() );
|
||||
OSL_FAIL( CByteString("Unknown replacement in String: ").Append( ByteString( aResult.Copy(nStart,nEnd-nStart), RTL_TEXTENCODING_UTF8 ) ).GetBuffer() );
|
||||
nStartPos = nStartPos + StartKenn.Len();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -325,7 +325,7 @@ BOOL SvMetaClass::TestAttribute( SvIdlDataBase & rBase, SvTokenStream & rInStm,
|
|||
if ( !rAttr.GetRef() && rAttr.IsA( TYPE( SvMetaSlot ) ) )
|
||||
{
|
||||
OSL_FAIL( "Neuer Slot : " );
|
||||
DBG_ERROR( rAttr.GetSlotId().GetBuffer() );
|
||||
OSL_FAIL( rAttr.GetSlotId().GetBuffer() );
|
||||
}
|
||||
|
||||
for( ULONG n = 0; n < aAttrList.Count(); n++ )
|
||||
|
@ -337,9 +337,9 @@ BOOL SvMetaClass::TestAttribute( SvIdlDataBase & rBase, SvTokenStream & rInStm,
|
|||
if( pS->GetSlotId().GetValue() != rAttr.GetSlotId().GetValue() )
|
||||
{
|
||||
OSL_FAIL( "Gleicher Name in MetaClass : " );
|
||||
DBG_ERROR( pS->GetName().GetBuffer() );
|
||||
DBG_ERROR( pS->GetSlotId().GetBuffer() );
|
||||
DBG_ERROR( rAttr.GetSlotId().GetBuffer() );
|
||||
OSL_FAIL( pS->GetName().GetBuffer() );
|
||||
OSL_FAIL( pS->GetSlotId().GetBuffer() );
|
||||
OSL_FAIL( rAttr.GetSlotId().GetBuffer() );
|
||||
|
||||
ByteString aStr( "Attribute's " );
|
||||
aStr += pS->GetName();
|
||||
|
@ -356,9 +356,9 @@ BOOL SvMetaClass::TestAttribute( SvIdlDataBase & rBase, SvTokenStream & rInStm,
|
|||
if( nId1 == nId2 && nId1 != 0 )
|
||||
{
|
||||
OSL_FAIL( "Gleiche Id in MetaClass : " );
|
||||
DBG_ERROR( ByteString::CreateFromInt32( pS->GetSlotId().GetValue() ).GetBuffer() );
|
||||
DBG_ERROR( pS->GetSlotId().GetBuffer() );
|
||||
DBG_ERROR( rAttr.GetSlotId().GetBuffer() );
|
||||
OSL_FAIL( ByteString::CreateFromInt32( pS->GetSlotId().GetValue() ).GetBuffer() );
|
||||
OSL_FAIL( pS->GetSlotId().GetBuffer() );
|
||||
OSL_FAIL( rAttr.GetSlotId().GetBuffer() );
|
||||
|
||||
ByteString aStr( "Attribute " );
|
||||
aStr += pS->GetName();
|
||||
|
|
|
@ -260,7 +260,7 @@ sal_Bool FmSearchEngine::MoveCursor()
|
|||
sDebugMessage.AssignAscii("FmSearchEngine::MoveCursor : catched a DatabaseException (");
|
||||
sDebugMessage += (const sal_Unicode*)e.SQLState;
|
||||
sDebugMessage.AppendAscii(") !");
|
||||
DBG_ERROR(ByteString(sDebugMessage, RTL_TEXTENCODING_ASCII_US).GetBuffer());
|
||||
OSL_FAIL(ByteString(sDebugMessage, RTL_TEXTENCODING_ASCII_US).GetBuffer());
|
||||
#endif
|
||||
bSuccess = sal_False;
|
||||
}
|
||||
|
@ -271,7 +271,7 @@ sal_Bool FmSearchEngine::MoveCursor()
|
|||
sDebugMessage.AssignAscii("FmSearchEngine::MoveCursor : catched an Exception (");
|
||||
sDebugMessage += (const sal_Unicode*)e.Message;
|
||||
sDebugMessage.AppendAscii(") !");
|
||||
DBG_ERROR(ByteString(sDebugMessage, RTL_TEXTENCODING_ASCII_US).GetBuffer());
|
||||
OSL_FAIL(ByteString(sDebugMessage, RTL_TEXTENCODING_ASCII_US).GetBuffer());
|
||||
#endif
|
||||
bSuccess = sal_False;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue