diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-09-23 22:33:44 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-09-26 10:18:39 +0100 |
commit | 8712fbf2a6b1905697e4bbe3a1ff1ec375bc67b2 (patch) | |
tree | 1308cf7853ff61f0a53dbaf4a212233938382a63 /sfx2 | |
parent | 8ec3318688aabdca875e2671e68d5f31205bfe5d (diff) |
ByteString->rtl::OStringBuffer
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/appl/appuno.cxx | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/sfx2/source/appl/appuno.cxx b/sfx2/source/appl/appuno.cxx index c3a545fb8935..8fb93d2aaa85 100644 --- a/sfx2/source/appl/appuno.cxx +++ b/sfx2/source/appl/appuno.cxx @@ -283,11 +283,9 @@ void TransformParameters( sal_uInt16 nSlotId, const ::com::sun::star::uno::Seque for ( nSub=0; nSub<nSubCount; nSub++ ) { // search sub item by name - ByteString aStr( pSlot->pUnoName ); - aStr += '.'; - aStr += ByteString( pType->aAttrib[nSub].pName ); - const char* pName = aStr.GetBuffer(); - if ( rPropValue.Name.compareToAscii( pName ) == COMPARE_EQUAL ) + rtl::OStringBuffer aStr; + aStr.append(pSlot->pUnoName).append('.').append(pType->aAttrib[nSub].pName); + if ( rPropValue.Name.equalsAsciiL(aStr.getStr(), aStr.getLength()) ) { sal_uInt8 nSubId = (sal_uInt8) (sal_Int8) pType->aAttrib[nSub].nAID; if ( bConvertTwips ) @@ -417,11 +415,9 @@ void TransformParameters( sal_uInt16 nSlotId, const ::com::sun::star::uno::Seque for ( sal_uInt16 nSub=0; nSub<nSubCount; nSub++ ) { // search sub item by name - ByteString aStr( rArg.pName ); - aStr += '.'; - aStr += pType->aAttrib[nSub].pName; - const char* pName = aStr.GetBuffer(); - if ( rProp.Name.compareToAscii( pName ) == COMPARE_EQUAL ) + rtl::OStringBuffer aStr; + aStr.append(rArg.pName).append('.').append(pType->aAttrib[nSub].pName); + if ( rProp.Name.equalsAsciiL(aStr.getStr(), aStr.getLength()) ) { // at least one member found ... bRet = sal_True; |