diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-09-20 23:30:51 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-09-21 09:47:38 +0100 |
commit | 2cd8d42be0379e897c8331175ea9bd7f32e171a0 (patch) | |
tree | 4a8b60bb5a5a66520f2ab916071ed469fd841b72 /idl/source/objects/types.cxx | |
parent | 3eb62d6899534023fac60b1aa57dce337aa94cf9 (diff) |
ByteString->rtl::OStringBuffer
Diffstat (limited to 'idl/source/objects/types.cxx')
-rw-r--r-- | idl/source/objects/types.cxx | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/idl/source/objects/types.cxx b/idl/source/objects/types.cxx index a32bff132fb7..c6d980f20a4b 100644 --- a/idl/source/objects/types.cxx +++ b/idl/source/objects/types.cxx @@ -722,7 +722,7 @@ void SvMetaAttribute::Write( SvIdlDataBase & rBase, SvStream & rOutStm, } } -sal_uLong SvMetaAttribute::MakeSfx( ByteString& rAttrArray ) +sal_uLong SvMetaAttribute::MakeSfx( rtl::OStringBuffer& rAttrArray ) { SvMetaType * pType = GetType(); DBG_ASSERT( pType, "no type for attribute" ); @@ -732,11 +732,11 @@ sal_uLong SvMetaAttribute::MakeSfx( ByteString& rAttrArray ) return pBaseType->MakeSfx( rAttrArray ); else { - rAttrArray += '{'; - rAttrArray += GetSlotId(); - rAttrArray += ",\""; - rAttrArray += GetName(); - rAttrArray += "\"}"; + rAttrArray.append('{'); + rAttrArray.append(GetSlotId()); + rAttrArray.append(",\""); + rAttrArray.append(GetName()); + rAttrArray.append("\"}"); return 1; } } @@ -1035,16 +1035,16 @@ sal_Bool SvMetaType::SetName( const ByteString & rName, SvIdlDataBase * pBase ) #ifdef IDL_COMPILER ByteString SvMetaType::GetCString() const { - ByteString out( GetSvName() ); + rtl::OStringBuffer out( GetSvName() ); if( aCall0 == (int)CALL_POINTER ) - out += " *"; + out.append(" *"); else if( aCall0 == (int)CALL_REFERENCE ) - out += " &"; + out.append(" &"); if( aCall1 == (int)CALL_POINTER ) - out += '*'; + out.append('*'); else if( aCall1 == (int)CALL_REFERENCE ) - out += '&'; - return out; + out.append('&'); + return out.makeStringAndClear(); } sal_Bool SvMetaType::ReadHeaderSvIdl( SvIdlDataBase & rBase, @@ -1399,7 +1399,7 @@ void SvMetaType::WriteAttributes( SvIdlDataBase & rBase, SvStream & rOutStm, SvMetaExtern::WriteAttributes( rBase, rOutStm, nTab, nT, nA ); } -sal_uLong SvMetaType::MakeSfx( ByteString& rAttrArray ) +sal_uLong SvMetaType::MakeSfx( rtl::OStringBuffer& rAttrArray ) { sal_uLong nC = 0; @@ -1411,7 +1411,7 @@ sal_uLong SvMetaType::MakeSfx( ByteString& rAttrArray ) { nC += pAttrList->GetObject( n )->MakeSfx( rAttrArray ); if( n +1 < nAttrCount ) - rAttrArray += ", "; + rAttrArray.append(", "); } } return nC; @@ -1426,7 +1426,7 @@ void SvMetaType::WriteSfxItem( aVarName += "_Impl"; ByteString aTypeName = "SfxType"; - ByteString aAttrArray; + rtl::OStringBuffer aAttrArray; sal_uLong nAttrCount = MakeSfx( aAttrArray ); ByteString aAttrCount( rtl::OString::valueOf(static_cast<sal_Int32>(nAttrCount))); @@ -1446,7 +1446,7 @@ void SvMetaType::WriteSfxItem( { rOutStm << ", { "; // write the single attributes - rOutStm << aAttrArray.GetBuffer(); + rOutStm << aAttrArray.getStr(); rOutStm << " }"; } rOutStm << endl << "};" << endl |