diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2011-09-27 20:21:15 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2011-09-27 20:22:03 +0200 |
commit | 6671fa81db0ecea4ada005bb79f55f08fb440ad4 (patch) | |
tree | 85ad806ece8d60736b6b01310b04b053dc2f8179 /basic | |
parent | b6d8251eee90b7e24ebb3f8452eff36a507e6d91 (diff) |
Removed uses of rtl::O[U]String[Buffer]::operator sal_{char|Unicode} const *().
Diffstat (limited to 'basic')
-rw-r--r-- | basic/source/classes/sbunoobj.cxx | 25 |
1 files changed, 11 insertions, 14 deletions
diff --git a/basic/source/classes/sbunoobj.cxx b/basic/source/classes/sbunoobj.cxx index 57ad90b177e0..b503f85a117d 100644 --- a/basic/source/classes/sbunoobj.cxx +++ b/basic/source/classes/sbunoobj.cxx @@ -2028,9 +2028,8 @@ bool checkUnoObjectType( SbUnoObject* pUnoObj, const ::rtl::OUString& rClass ) SbxVariable* pVar = pMethods->Get( i ); if( pVar ) { - ::rtl::OUStringBuffer aPropStr; if( (i % nPropsPerLine) == 0 ) - aPropStr.appendAscii( "\n" ); + aRet.appendAscii( "\n" ); // address the method const Reference< XIdlMethod >& rxMethod = pUnoMethods[i]; @@ -2044,10 +2043,10 @@ bool checkUnoObjectType( SbUnoObject* pUnoObj, const ::rtl::OUString& rClass ) eType = (SbxDataType) ( SbxOBJECT | SbxARRAY ); } // output the name and the type - aPropStr.append( Dbg_SbxDataType2String( eType ) ); - aPropStr.appendAscii( " " ); - aPropStr.append ( pVar->GetName() ); - aPropStr.appendAscii( " ( " ); + aRet.append( Dbg_SbxDataType2String( eType ) ); + aRet.appendAscii( " " ); + aRet.append ( pVar->GetName() ); + aRet.appendAscii( " ( " ); // the get-method mustn't have a parameter Sequence< Reference< XIdlClass > > aParamsSeq = rxMethod->getParameterTypes(); @@ -2058,22 +2057,20 @@ bool checkUnoObjectType( SbUnoObject* pUnoObj, const ::rtl::OUString& rClass ) { for( sal_uInt16 j = 0; j < nParamCount; j++ ) { - aPropStr.append ( Dbg_SbxDataType2String( unoToSbxType( pParams[ j ] ) ) ); + aRet.append ( Dbg_SbxDataType2String( unoToSbxType( pParams[ j ] ) ) ); if( j < nParamCount - 1 ) - aPropStr.appendAscii( ", " ); + aRet.appendAscii( ", " ); } } else - aPropStr.appendAscii( "void" ); + aRet.appendAscii( "void" ); - aPropStr.appendAscii( " ) " ); + aRet.appendAscii( " ) " ); if( i == nMethodCount - 1 ) - aPropStr.appendAscii( "\n" ); + aRet.appendAscii( "\n" ); else - aPropStr.appendAscii( "; " ); - - aRet.append( aPropStr ); + aRet.appendAscii( "; " ); } } return aRet.makeStringAndClear(); |