Kaydet (Commit) ba4276ef authored tarafından Stephan Bergmann's avatar Stephan Bergmann

loplugin:stringconstant: OUStringBuffer: appendAscii -> append

Change-Id: I349e1b9e3ea81c0684c6234497b6d44b47666b09
üst 9320b960
...@@ -292,25 +292,25 @@ namespace ...@@ -292,25 +292,25 @@ namespace
{ {
while ( _nLevel-- > 0 ) while ( _nLevel-- > 0 )
{ {
_inout_rBuffer.appendAscii( " " ); _inout_rBuffer.append( " " );
} }
} }
} }
void implAppendExceptionMsg( OUStringBuffer& _inout_rBuffer, const Exception& _e, const OUString& _rExceptionType, sal_Int32 _nLevel ) void implAppendExceptionMsg( OUStringBuffer& _inout_rBuffer, const Exception& _e, const OUString& _rExceptionType, sal_Int32 _nLevel )
{ {
_inout_rBuffer.appendAscii( "\n" ); _inout_rBuffer.append( "\n" );
lcl_indent( _inout_rBuffer, _nLevel ); lcl_indent( _inout_rBuffer, _nLevel );
_inout_rBuffer.appendAscii( "Type: " ); _inout_rBuffer.append( "Type: " );
if ( _rExceptionType.isEmpty() ) if ( _rExceptionType.isEmpty() )
_inout_rBuffer.appendAscii( "Unknown" ); _inout_rBuffer.append( "Unknown" );
else else
_inout_rBuffer.append( _rExceptionType ); _inout_rBuffer.append( _rExceptionType );
_inout_rBuffer.appendAscii( "\n" ); _inout_rBuffer.append( "\n" );
lcl_indent( _inout_rBuffer, _nLevel ); lcl_indent( _inout_rBuffer, _nLevel );
_inout_rBuffer.appendAscii( "Message: " ); _inout_rBuffer.append( "Message: " );
_inout_rBuffer.append( _e.Message ); _inout_rBuffer.append( _e.Message );
} }
...@@ -414,7 +414,7 @@ void implHandleWrappedTargetException( const Any& _rWrappedTargetException ) ...@@ -414,7 +414,7 @@ void implHandleWrappedTargetException( const Any& _rWrappedTargetException )
implAppendExceptionMsg( aMessageBuf, aWrapped, aExamine.getValueTypeName(), nLevel ); implAppendExceptionMsg( aMessageBuf, aWrapped, aExamine.getValueTypeName(), nLevel );
if ( aWrapped.TargetException.getValueTypeClass() == TypeClass_EXCEPTION ) if ( aWrapped.TargetException.getValueTypeClass() == TypeClass_EXCEPTION )
// there is a next chain element // there is a next chain element
aMessageBuf.appendAscii( "\nTargetException:" ); aMessageBuf.append( "\nTargetException:" );
// next round // next round
aExamine = aWrapped.TargetException; aExamine = aWrapped.TargetException;
...@@ -1579,7 +1579,7 @@ OUString Impl_GetInterfaceInfo( const Reference< XInterface >& x, const Referenc ...@@ -1579,7 +1579,7 @@ OUString Impl_GetInterfaceInfo( const Reference< XInterface >& x, const Referenc
OUStringBuffer aRetStr; OUStringBuffer aRetStr;
for( sal_uInt16 i = 0 ; i < nRekLevel ; i++ ) for( sal_uInt16 i = 0 ; i < nRekLevel ; i++ )
aRetStr.appendAscii( " " ); aRetStr.append( " " );
aRetStr.append( xClass->getName() ); aRetStr.append( xClass->getName() );
OUString aClassName = xClass->getName(); OUString aClassName = xClass->getName();
Type aClassType( xClass->getTypeClass(), aClassName.getStr() ); Type aClassType( xClass->getTypeClass(), aClassName.getStr() );
...@@ -1587,12 +1587,12 @@ OUString Impl_GetInterfaceInfo( const Reference< XInterface >& x, const Referenc ...@@ -1587,12 +1587,12 @@ OUString Impl_GetInterfaceInfo( const Reference< XInterface >& x, const Referenc
// checking if the interface is really supported // checking if the interface is really supported
if( !x->queryInterface( aClassType ).hasValue() ) if( !x->queryInterface( aClassType ).hasValue() )
{ {
aRetStr.appendAscii( " (ERROR: Not really supported!)\n" ); aRetStr.append( " (ERROR: Not really supported!)\n" );
} }
// Are there super interfaces? // Are there super interfaces?
else else
{ {
aRetStr.appendAscii( "\n" ); aRetStr.append( "\n" );
// get the super interfaces // get the super interfaces
Sequence< Reference< XIdlClass > > aSuperClassSeq = xClass->getSuperclasses(); Sequence< Reference< XIdlClass > > aSuperClassSeq = xClass->getSuperclasses();
...@@ -1641,11 +1641,11 @@ OUString getDbgObjectName( SbUnoObject* pUnoObj ) ...@@ -1641,11 +1641,11 @@ OUString getDbgObjectName( SbUnoObject* pUnoObj )
OUStringBuffer aRet; OUStringBuffer aRet;
if( aName.getLength() > 20 ) if( aName.getLength() > 20 )
{ {
aRet.appendAscii( "\n" ); aRet.append( "\n" );
} }
aRet.appendAscii( "\"" ); aRet.append( "\"" );
aRet.append( aName ); aRet.append( aName );
aRet.appendAscii( "\":" ); aRet.append( "\":" );
return aRet.makeStringAndClear(); return aRet.makeStringAndClear();
} }
...@@ -1770,7 +1770,7 @@ OUString Impl_GetSupportedInterfaces( SbUnoObject* pUnoObj ) ...@@ -1770,7 +1770,7 @@ OUString Impl_GetSupportedInterfaces( SbUnoObject* pUnoObj )
if( eType != TypeClass_INTERFACE ) if( eType != TypeClass_INTERFACE )
{ {
aRet.appendAscii( ID_DBG_SUPPORTEDINTERFACES ); aRet.appendAscii( ID_DBG_SUPPORTEDINTERFACES );
aRet.appendAscii( " not available.\n(TypeClass is not TypeClass_INTERFACE)\n" ); aRet.append( " not available.\n(TypeClass is not TypeClass_INTERFACE)\n" );
} }
else else
{ {
...@@ -1779,9 +1779,9 @@ OUString Impl_GetSupportedInterfaces( SbUnoObject* pUnoObj ) ...@@ -1779,9 +1779,9 @@ OUString Impl_GetSupportedInterfaces( SbUnoObject* pUnoObj )
Reference< XTypeProvider > xTypeProvider( x, UNO_QUERY ); Reference< XTypeProvider > xTypeProvider( x, UNO_QUERY );
aRet.appendAscii( "Supported interfaces by object " ); aRet.append( "Supported interfaces by object " );
aRet.append( getDbgObjectName( pUnoObj ) ); aRet.append( getDbgObjectName( pUnoObj ) );
aRet.appendAscii( "\n" ); aRet.append( "\n" );
if( xTypeProvider.is() ) if( xTypeProvider.is() )
{ {
// get the interfaces of the implementation // get the interfaces of the implementation
...@@ -1802,9 +1802,9 @@ OUString Impl_GetSupportedInterfaces( SbUnoObject* pUnoObj ) ...@@ -1802,9 +1802,9 @@ OUString Impl_GetSupportedInterfaces( SbUnoObject* pUnoObj )
typelib_TypeDescription * pTD = 0; typelib_TypeDescription * pTD = 0;
rType.getDescription( &pTD ); rType.getDescription( &pTD );
aRet.appendAscii( "*** ERROR: No IdlClass for type \"" ); aRet.append( "*** ERROR: No IdlClass for type \"" );
aRet.append( pTD->pTypeName ); aRet.append( pTD->pTypeName );
aRet.appendAscii( "\"\n*** Please check type library\n" ); aRet.append( "\"\n*** Please check type library\n" );
} }
} }
} }
...@@ -1820,40 +1820,40 @@ OUString Dbg_SbxDataType2String( SbxDataType eType ) ...@@ -1820,40 +1820,40 @@ OUString Dbg_SbxDataType2String( SbxDataType eType )
OUStringBuffer aRet; OUStringBuffer aRet;
switch( +eType ) switch( +eType )
{ {
case SbxEMPTY: aRet.appendAscii("SbxEMPTY"); break; case SbxEMPTY: aRet.append("SbxEMPTY"); break;
case SbxNULL: aRet.appendAscii("SbxNULL"); break; case SbxNULL: aRet.append("SbxNULL"); break;
case SbxINTEGER: aRet.appendAscii("SbxINTEGER"); break; case SbxINTEGER: aRet.append("SbxINTEGER"); break;
case SbxLONG: aRet.appendAscii("SbxLONG"); break; case SbxLONG: aRet.append("SbxLONG"); break;
case SbxSINGLE: aRet.appendAscii("SbxSINGLE"); break; case SbxSINGLE: aRet.append("SbxSINGLE"); break;
case SbxDOUBLE: aRet.appendAscii("SbxDOUBLE"); break; case SbxDOUBLE: aRet.append("SbxDOUBLE"); break;
case SbxCURRENCY: aRet.appendAscii("SbxCURRENCY"); break; case SbxCURRENCY: aRet.append("SbxCURRENCY"); break;
case SbxDECIMAL: aRet.appendAscii("SbxDECIMAL"); break; case SbxDECIMAL: aRet.append("SbxDECIMAL"); break;
case SbxDATE: aRet.appendAscii("SbxDATE"); break; case SbxDATE: aRet.append("SbxDATE"); break;
case SbxSTRING: aRet.appendAscii("SbxSTRING"); break; case SbxSTRING: aRet.append("SbxSTRING"); break;
case SbxOBJECT: aRet.appendAscii("SbxOBJECT"); break; case SbxOBJECT: aRet.append("SbxOBJECT"); break;
case SbxERROR: aRet.appendAscii("SbxERROR"); break; case SbxERROR: aRet.append("SbxERROR"); break;
case SbxBOOL: aRet.appendAscii("SbxBOOL"); break; case SbxBOOL: aRet.append("SbxBOOL"); break;
case SbxVARIANT: aRet.appendAscii("SbxVARIANT"); break; case SbxVARIANT: aRet.append("SbxVARIANT"); break;
case SbxDATAOBJECT: aRet.appendAscii("SbxDATAOBJECT"); break; case SbxDATAOBJECT: aRet.append("SbxDATAOBJECT"); break;
case SbxCHAR: aRet.appendAscii("SbxCHAR"); break; case SbxCHAR: aRet.append("SbxCHAR"); break;
case SbxBYTE: aRet.appendAscii("SbxBYTE"); break; case SbxBYTE: aRet.append("SbxBYTE"); break;
case SbxUSHORT: aRet.appendAscii("SbxUSHORT"); break; case SbxUSHORT: aRet.append("SbxUSHORT"); break;
case SbxULONG: aRet.appendAscii("SbxULONG"); break; case SbxULONG: aRet.append("SbxULONG"); break;
case SbxSALINT64: aRet.appendAscii("SbxINT64"); break; case SbxSALINT64: aRet.append("SbxINT64"); break;
case SbxSALUINT64: aRet.appendAscii("SbxUINT64"); break; case SbxSALUINT64: aRet.append("SbxUINT64"); break;
case SbxINT: aRet.appendAscii("SbxINT"); break; case SbxINT: aRet.append("SbxINT"); break;
case SbxUINT: aRet.appendAscii("SbxUINT"); break; case SbxUINT: aRet.append("SbxUINT"); break;
case SbxVOID: aRet.appendAscii("SbxVOID"); break; case SbxVOID: aRet.append("SbxVOID"); break;
case SbxHRESULT: aRet.appendAscii("SbxHRESULT"); break; case SbxHRESULT: aRet.append("SbxHRESULT"); break;
case SbxPOINTER: aRet.appendAscii("SbxPOINTER"); break; case SbxPOINTER: aRet.append("SbxPOINTER"); break;
case SbxDIMARRAY: aRet.appendAscii("SbxDIMARRAY"); break; case SbxDIMARRAY: aRet.append("SbxDIMARRAY"); break;
case SbxCARRAY: aRet.appendAscii("SbxCARRAY"); break; case SbxCARRAY: aRet.append("SbxCARRAY"); break;
case SbxUSERDEF: aRet.appendAscii("SbxUSERDEF"); break; case SbxUSERDEF: aRet.append("SbxUSERDEF"); break;
case SbxLPSTR: aRet.appendAscii("SbxLPSTR"); break; case SbxLPSTR: aRet.append("SbxLPSTR"); break;
case SbxLPWSTR: aRet.appendAscii("SbxLPWSTR"); break; case SbxLPWSTR: aRet.append("SbxLPWSTR"); break;
case SbxCoreSTRING: aRet.appendAscii("SbxCoreSTRING"); break; case SbxCoreSTRING: aRet.append("SbxCoreSTRING"); break;
case SbxOBJECT | SbxARRAY: aRet.appendAscii("SbxARRAY"); break; case SbxOBJECT | SbxARRAY: aRet.append("SbxARRAY"); break;
default: aRet.appendAscii("Unknown Sbx-Type!");break; default: aRet.append("Unknown Sbx-Type!");break;
} }
return aRet.makeStringAndClear(); return aRet.makeStringAndClear();
} }
...@@ -1862,7 +1862,7 @@ OUString Dbg_SbxDataType2String( SbxDataType eType ) ...@@ -1862,7 +1862,7 @@ OUString Dbg_SbxDataType2String( SbxDataType eType )
OUString Impl_DumpProperties( SbUnoObject* pUnoObj ) OUString Impl_DumpProperties( SbUnoObject* pUnoObj )
{ {
OUStringBuffer aRet; OUStringBuffer aRet;
aRet.appendAscii("Properties of object "); aRet.append("Properties of object ");
aRet.append( getDbgObjectName( pUnoObj ) ); aRet.append( getDbgObjectName( pUnoObj ) );
// analyse the Uno-Infos to recognise the arrays // analyse the Uno-Infos to recognise the arrays
...@@ -1875,7 +1875,7 @@ OUString Impl_DumpProperties( SbUnoObject* pUnoObj ) ...@@ -1875,7 +1875,7 @@ OUString Impl_DumpProperties( SbUnoObject* pUnoObj )
} }
if( !xAccess.is() ) if( !xAccess.is() )
{ {
aRet.appendAscii( "\nUnknown, no introspection available\n" ); aRet.append( "\nUnknown, no introspection available\n" );
return aRet.makeStringAndClear(); return aRet.makeStringAndClear();
} }
...@@ -1893,7 +1893,7 @@ OUString Impl_DumpProperties( SbUnoObject* pUnoObj ) ...@@ -1893,7 +1893,7 @@ OUString Impl_DumpProperties( SbUnoObject* pUnoObj )
{ {
OUStringBuffer aPropStr; OUStringBuffer aPropStr;
if( (i % nPropsPerLine) == 0 ) if( (i % nPropsPerLine) == 0 )
aPropStr.appendAscii( "\n" ); aPropStr.append( "\n" );
// output the type and name // output the type and name
// Is it in Uno a sequence? // Is it in Uno a sequence?
...@@ -1920,14 +1920,14 @@ OUString Impl_DumpProperties( SbUnoObject* pUnoObj ) ...@@ -1920,14 +1920,14 @@ OUString Impl_DumpProperties( SbUnoObject* pUnoObj )
} }
aPropStr.append( Dbg_SbxDataType2String( eType ) ); aPropStr.append( Dbg_SbxDataType2String( eType ) );
if( bMaybeVoid ) if( bMaybeVoid )
aPropStr.appendAscii( "/void" ); aPropStr.append( "/void" );
aPropStr.appendAscii( " " ); aPropStr.append( " " );
aPropStr.append( pVar->GetName() ); aPropStr.append( pVar->GetName() );
if( i == nPropCount - 1 ) if( i == nPropCount - 1 )
aPropStr.appendAscii( "\n" ); aPropStr.append( "\n" );
else else
aPropStr.appendAscii( "; " ); aPropStr.append( "; " );
aRet.append( aPropStr.makeStringAndClear() ); aRet.append( aPropStr.makeStringAndClear() );
} }
...@@ -1939,7 +1939,7 @@ OUString Impl_DumpProperties( SbUnoObject* pUnoObj ) ...@@ -1939,7 +1939,7 @@ OUString Impl_DumpProperties( SbUnoObject* pUnoObj )
OUString Impl_DumpMethods( SbUnoObject* pUnoObj ) OUString Impl_DumpMethods( SbUnoObject* pUnoObj )
{ {
OUStringBuffer aRet; OUStringBuffer aRet;
aRet.appendAscii("Methods of object "); aRet.append("Methods of object ");
aRet.append( getDbgObjectName( pUnoObj ) ); aRet.append( getDbgObjectName( pUnoObj ) );
// XIntrospectionAccess, so that the types of the parameter could be outputed // XIntrospectionAccess, so that the types of the parameter could be outputed
...@@ -1952,7 +1952,7 @@ OUString Impl_DumpMethods( SbUnoObject* pUnoObj ) ...@@ -1952,7 +1952,7 @@ OUString Impl_DumpMethods( SbUnoObject* pUnoObj )
} }
if( !xAccess.is() ) if( !xAccess.is() )
{ {
aRet.appendAscii( "\nUnknown, no introspection available\n" ); aRet.append( "\nUnknown, no introspection available\n" );
return aRet.makeStringAndClear(); return aRet.makeStringAndClear();
} }
Sequence< Reference< XIdlMethod > > methods = xAccess->getMethods Sequence< Reference< XIdlMethod > > methods = xAccess->getMethods
...@@ -1963,7 +1963,7 @@ OUString Impl_DumpMethods( SbUnoObject* pUnoObj ) ...@@ -1963,7 +1963,7 @@ OUString Impl_DumpMethods( SbUnoObject* pUnoObj )
sal_uInt16 nMethodCount = pMethods->Count(); sal_uInt16 nMethodCount = pMethods->Count();
if( !nMethodCount ) if( !nMethodCount )
{ {
aRet.appendAscii( "\nNo methods found\n" ); aRet.append( "\nNo methods found\n" );
return aRet.makeStringAndClear(); return aRet.makeStringAndClear();
} }
sal_uInt16 nPropsPerLine = 1 + nMethodCount / 30; sal_uInt16 nPropsPerLine = 1 + nMethodCount / 30;
...@@ -1973,7 +1973,7 @@ OUString Impl_DumpMethods( SbUnoObject* pUnoObj ) ...@@ -1973,7 +1973,7 @@ OUString Impl_DumpMethods( SbUnoObject* pUnoObj )
if( pVar ) if( pVar )
{ {
if( (i % nPropsPerLine) == 0 ) if( (i % nPropsPerLine) == 0 )
aRet.appendAscii( "\n" ); aRet.append( "\n" );
// address the method // address the method
const Reference< XIdlMethod >& rxMethod = pUnoMethods[i]; const Reference< XIdlMethod >& rxMethod = pUnoMethods[i];
...@@ -1988,9 +1988,9 @@ OUString Impl_DumpMethods( SbUnoObject* pUnoObj ) ...@@ -1988,9 +1988,9 @@ OUString Impl_DumpMethods( SbUnoObject* pUnoObj )
} }
// output the name and the type // output the name and the type
aRet.append( Dbg_SbxDataType2String( eType ) ); aRet.append( Dbg_SbxDataType2String( eType ) );
aRet.appendAscii( " " ); aRet.append( " " );
aRet.append ( pVar->GetName() ); aRet.append ( pVar->GetName() );
aRet.appendAscii( " ( " ); aRet.append( " ( " );
// the get-method mustn't have a parameter // the get-method mustn't have a parameter
Sequence< Reference< XIdlClass > > aParamsSeq = rxMethod->getParameterTypes(); Sequence< Reference< XIdlClass > > aParamsSeq = rxMethod->getParameterTypes();
...@@ -2003,18 +2003,18 @@ OUString Impl_DumpMethods( SbUnoObject* pUnoObj ) ...@@ -2003,18 +2003,18 @@ OUString Impl_DumpMethods( SbUnoObject* pUnoObj )
{ {
aRet.append ( Dbg_SbxDataType2String( unoToSbxType( pParams[ j ] ) ) ); aRet.append ( Dbg_SbxDataType2String( unoToSbxType( pParams[ j ] ) ) );
if( j < nParamCount - 1 ) if( j < nParamCount - 1 )
aRet.appendAscii( ", " ); aRet.append( ", " );
} }
} }
else else
aRet.appendAscii( "void" ); aRet.append( "void" );
aRet.appendAscii( " ) " ); aRet.append( " ) " );
if( i == nMethodCount - 1 ) if( i == nMethodCount - 1 )
aRet.appendAscii( "\n" ); aRet.append( "\n" );
else else
aRet.appendAscii( "; " ); aRet.append( "; " );
} }
} }
return aRet.makeStringAndClear(); return aRet.makeStringAndClear();
...@@ -4942,7 +4942,7 @@ Any SbUnoStructRefObject::getUnoAny() ...@@ -4942,7 +4942,7 @@ Any SbUnoStructRefObject::getUnoAny()
OUString SbUnoStructRefObject::Impl_DumpProperties() OUString SbUnoStructRefObject::Impl_DumpProperties()
{ {
OUStringBuffer aRet; OUStringBuffer aRet;
aRet.appendAscii("Properties of object "); aRet.append("Properties of object ");
aRet.append( getDbgObjectName() ); aRet.append( getDbgObjectName() );
sal_uInt16 nPropCount = pProps->Count(); sal_uInt16 nPropCount = pProps->Count();
...@@ -4955,7 +4955,7 @@ OUString SbUnoStructRefObject::Impl_DumpProperties() ...@@ -4955,7 +4955,7 @@ OUString SbUnoStructRefObject::Impl_DumpProperties()
OUStringBuffer aPropStr; OUStringBuffer aPropStr;
if( (i % nPropsPerLine) == 0 ) if( (i % nPropsPerLine) == 0 )
{ {
aPropStr.appendAscii( "\n" ); aPropStr.append( "\n" );
} }
// output the type and name // output the type and name
// Is it in Uno a sequence? // Is it in Uno a sequence?
...@@ -4978,16 +4978,16 @@ OUString SbUnoStructRefObject::Impl_DumpProperties() ...@@ -4978,16 +4978,16 @@ OUString SbUnoStructRefObject::Impl_DumpProperties()
} }
aPropStr.append( Dbg_SbxDataType2String( eType ) ); aPropStr.append( Dbg_SbxDataType2String( eType ) );
aPropStr.appendAscii( " " ); aPropStr.append( " " );
aPropStr.append( pVar->GetName() ); aPropStr.append( pVar->GetName() );
if( i == nPropCount - 1 ) if( i == nPropCount - 1 )
{ {
aPropStr.appendAscii( "\n" ); aPropStr.append( "\n" );
} }
else else
{ {
aPropStr.appendAscii( "; " ); aPropStr.append( "; " );
} }
aRet.append( aPropStr.makeStringAndClear() ); aRet.append( aPropStr.makeStringAndClear() );
} }
...@@ -5019,7 +5019,7 @@ void SbUnoStructRefObject::Notify( SfxBroadcaster& rBC, const SfxHint& rHint ) ...@@ -5019,7 +5019,7 @@ void SbUnoStructRefObject::Notify( SfxBroadcaster& rBC, const SfxHint& rHint )
{ {
OUStringBuffer aRet; OUStringBuffer aRet;
aRet.appendAscii( ID_DBG_SUPPORTEDINTERFACES ); aRet.appendAscii( ID_DBG_SUPPORTEDINTERFACES );
aRet.appendAscii( " not available.\n(TypeClass is not TypeClass_INTERFACE)\n" ); aRet.append( " not available.\n(TypeClass is not TypeClass_INTERFACE)\n" );
pVar->PutString( aRet.makeStringAndClear() ); pVar->PutString( aRet.makeStringAndClear() );
} }
...@@ -5037,9 +5037,9 @@ void SbUnoStructRefObject::Notify( SfxBroadcaster& rBC, const SfxHint& rHint ) ...@@ -5037,9 +5037,9 @@ void SbUnoStructRefObject::Notify( SfxBroadcaster& rBC, const SfxHint& rHint )
// by now all properties must be established // by now all properties must be established
implCreateAll(); implCreateAll();
OUStringBuffer aRet; OUStringBuffer aRet;
aRet.appendAscii("Methods of object "); aRet.append("Methods of object ");
aRet.append( getDbgObjectName() ); aRet.append( getDbgObjectName() );
aRet.appendAscii( "\nNo methods found\n" ); aRet.append( "\nNo methods found\n" );
pVar->PutString( aRet.makeStringAndClear() ); pVar->PutString( aRet.makeStringAndClear() );
} }
return; return;
...@@ -5100,11 +5100,11 @@ OUString SbUnoStructRefObject::getDbgObjectName() ...@@ -5100,11 +5100,11 @@ OUString SbUnoStructRefObject::getDbgObjectName()
OUStringBuffer aRet; OUStringBuffer aRet;
if( aName.getLength() > 20 ) if( aName.getLength() > 20 )
{ {
aRet.appendAscii( "\n" ); aRet.append( "\n" );
} }
aRet.appendAscii( "\"" ); aRet.append( "\"" );
aRet.append( aName ); aRet.append( aName );
aRet.appendAscii( "\":" ); aRet.append( "\":" );
return aRet.makeStringAndClear(); return aRet.makeStringAndClear();
} }
......
...@@ -4854,16 +4854,16 @@ RTLFUNC(Partition) ...@@ -4854,16 +4854,16 @@ RTLFUNC(Partition)
// appending the leading spaces for the lowervalue // appending the leading spaces for the lowervalue
for ( sal_Int32 i= (nLen - nLen1) ; i > 0; --i ) for ( sal_Int32 i= (nLen - nLen1) ; i > 0; --i )
{ {
aRetStr.appendAscii(" "); aRetStr.append(" ");
} }
} }
aRetStr.append( aLowerValue ).appendAscii(":"); aRetStr.append( aLowerValue ).append(":");
if( nLen > nLen2 ) if( nLen > nLen2 )
{ {
// appending the leading spaces for the uppervalue // appending the leading spaces for the uppervalue
for ( sal_Int32 i= (nLen - nLen2) ; i > 0; --i ) for ( sal_Int32 i= (nLen - nLen2) ; i > 0; --i )
{ {
aRetStr.appendAscii(" "); aRetStr.append(" ");
} }
} }
aRetStr.append( aUpperValue ); aRetStr.append( aUpperValue );
......
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