diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-12-01 23:31:52 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-12-06 10:33:04 +0000 |
commit | cd676159ca49756549fa81b29caf77a805cb4a5e (patch) | |
tree | eae9e14a9dfe2085dd9d0da39c008b6f076d9feb /idl/source/objects/slot.cxx | |
parent | 73a395cdc7d3ad802182a470c799720307ed408e (diff) |
ByteString->rtl::OString[Buffer]
Diffstat (limited to 'idl/source/objects/slot.cxx')
-rw-r--r-- | idl/source/objects/slot.cxx | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/idl/source/objects/slot.cxx b/idl/source/objects/slot.cxx index 2434a10ecb62..36115d918aab 100644 --- a/idl/source/objects/slot.cxx +++ b/idl/source/objects/slot.cxx @@ -843,10 +843,10 @@ sal_Bool SvMetaSlot::ReadSvIdl( SvIdlDataBase & rBase, SvTokenStream & rInStm ) } else { - ByteString aStr( "attribute " ); - aStr += pAttr->GetName(); - aStr += " is method or variable but not a slot"; - rBase.SetError( aStr, rInStm.GetToken() ); + rtl::OStringBuffer aStr( "attribute " ); + aStr.append(pAttr->GetName()); + aStr.append(" is method or variable but not a slot"); + rBase.SetError( aStr.makeStringAndClear(), rInStm.GetToken() ); rBase.WriteError( rInStm ); bOk = sal_False; } @@ -876,10 +876,10 @@ sal_Bool SvMetaSlot::ReadSvIdl( SvIdlDataBase & rBase, SvTokenStream & rInStm ) } else { - ByteString aStr( "attribute " ); - aStr += pAttr2->GetName(); - aStr += " is method or variable but not a slot"; - rBase.SetError( aStr, rInStm.GetToken() ); + rtl::OStringBuffer aStr("attribute "); + aStr.append(pAttr2->GetName()); + aStr.append(" is method or variable but not a slot"); + rBase.SetError( aStr.makeStringAndClear(), rInStm.GetToken() ); rBase.WriteError( rInStm ); bOk = sal_False; } @@ -1084,9 +1084,9 @@ void SvMetaSlot::Insert( SvSlotElementList& rList, const ByteString & rPrefix, static ByteString MakeSlotName( SvStringHashEntry * pEntry ) { - ByteString aName( "SFX_SLOT_" ); - aName += pEntry->GetName(); - return aName.ToUpperAscii(); + rtl::OStringBuffer aName(RTL_CONSTASCII_STRINGPARAM("SFX_SLOT_")); + aName.append(pEntry->GetName()); + return aName.makeStringAndClear().toAsciiUpperCase(); }; void SvMetaSlot::WriteSlotStubs( const ByteString & rShellName, |