diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-01-22 07:29:33 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-01-23 11:37:04 +0000 |
commit | fba010a77757d0724a0da4a902e78f17cdf15b65 (patch) | |
tree | c91ad89be535b856abcf4e3494a7e46d36871e28 /idl/source/objects | |
parent | 66823037e164af16f2cb24c4299c8776869c682c (diff) |
make sot ByteString free
Diffstat (limited to 'idl/source/objects')
-rw-r--r-- | idl/source/objects/object.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/idl/source/objects/object.cxx b/idl/source/objects/object.cxx index 30d936041099..8313db18204e 100644 --- a/idl/source/objects/object.cxx +++ b/idl/source/objects/object.cxx @@ -471,7 +471,7 @@ sal_uInt16 SvMetaClass::WriteSlots( const ByteString & rShellName, void SvMetaClass::InsertSlots( SvSlotElementList& rList, std::vector<sal_uLong>& rSuperList, SvMetaClassList &rClassList, - const ByteString & rPrefix, SvIdlDataBase& rBase) + const rtl::OString& rPrefix, SvIdlDataBase& rBase) { // was this class already written? for ( size_t i = 0, n = rClassList.size(); i < n ; ++i ) @@ -589,7 +589,7 @@ void SvMetaClass::WriteSfx( SvIdlDataBase & rBase, SvStream & rOutStm ) std::vector<sal_uLong> aSuperList; SvMetaClassList classList; SvSlotElementList aSlotList; - InsertSlots(aSlotList, aSuperList, classList, ByteString(), rBase); + InsertSlots(aSlotList, aSuperList, classList, rtl::OString(), rBase); for ( size_t i = 0, n = aSlotList.size(); i < n; ++i ) { SvSlotElement *pEle = aSlotList[ i ]; @@ -703,16 +703,16 @@ void SvMetaClass::WriteCxx( SvIdlDataBase &, SvStream & rOutStm, sal_uInt16 ) aSuperName = GetSuperClass()->GetName().getString(); const char * pSup = aSuperName.getStr(); - ByteString name = GetSvName(); + rtl::OString name = GetSvName(); // GetTypeName - rOutStm << "SvGlobalName " << name.GetBuffer() << "::GetTypeName() const" << endl + rOutStm << "SvGlobalName " << name.getStr() << "::GetTypeName() const" << endl << '{' << endl << "\treturn ClassName();" << endl << '}' << endl; SvMetaModule * pMod = GetModule(); // FillTypeLibInfo - rOutStm << "sal_Bool " << name.GetBuffer() << "::FillTypeLibInfo( SvGlobalName * pGN," << endl + rOutStm << "sal_Bool " << name.getStr() << "::FillTypeLibInfo( SvGlobalName * pGN," << endl << "\t sal_uInt16 * pMajor," << endl << "\t sal_uInt16 * pMinor ) const" << endl << '{' << endl @@ -728,7 +728,7 @@ void SvMetaClass::WriteCxx( SvIdlDataBase &, SvStream & rOutStm, sal_uInt16 ) << '}' << endl; // FillTypeLibInfo - rOutStm << "sal_Bool " << name.GetBuffer() << "::FillTypeLibInfo( ByteString * pName," + rOutStm << "sal_Bool " << name.getStr() << "::FillTypeLibInfo( ByteString * pName," << "\t sal_uInt16 * pMajor," << endl << "\t sal_uInt16 * pMinor ) const" << endl; rOutStm << '{' << endl @@ -742,7 +742,7 @@ void SvMetaClass::WriteCxx( SvIdlDataBase &, SvStream & rOutStm, sal_uInt16 ) << "\treturn sal_True;" << endl << '}' << endl; - rOutStm << "void " << name.GetBuffer() << "::Notify( SfxBroadcaster& rBC, const SfxHint& rHint )" << endl + rOutStm << "void " << name.getStr() << "::Notify( SfxBroadcaster& rBC, const SfxHint& rHint )" << endl << '{' << endl << "\t" << pSup << "::Notify( rBC, rHint );" << endl << '}' << endl; |