diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-07-17 10:58:28 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-07-17 10:58:28 +0100 |
commit | cc9aeefcc0f4ac08176156e52de2885675efedd1 (patch) | |
tree | c26cb3f8803bc89ee185f264632c952fbd24c802 | |
parent | 9e3de617f3928e09d2430d86b5092096c0b949e0 (diff) |
ByteString->OStringBUffer
-rw-r--r-- | sfx2/source/control/request.cxx | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/sfx2/source/control/request.cxx b/sfx2/source/control/request.cxx index c99badd04d46..bc5e03feea91 100644 --- a/sfx2/source/control/request.cxx +++ b/sfx2/source/control/request.cxx @@ -53,6 +53,7 @@ #include "macro.hxx" #include <sfx2/objface.hxx> #include <sfx2/appuno.hxx> +#include <rtl/strbuf.hxx> //=================================================================== @@ -219,9 +220,10 @@ SfxRequest::SfxRequest #ifdef DBG_UTIL else { - ByteString aStr( "Recording unsupported slot: "); - aStr += ByteString::CreateFromInt32( pImp->pPool->GetSlotId(nSlotId) ); - OSL_FAIL( aStr.GetBuffer() ); + rtl::OStringBuffer aStr(RTL_CONSTASCII_STRINGPARAM( + "Recording unsupported slot: ")); + aStr.append(static_cast<sal_Int32>(pImp->pPool->GetSlotId(nSlotId))); + OSL_FAIL(aStr.getStr()); } #endif } @@ -719,9 +721,10 @@ void SfxRequest::Done_Impl // new Recording uses UnoName! if ( !pImp->pSlot->pUnoName ) { - ByteString aStr( "Recording not exported slot: "); - aStr += ByteString::CreateFromInt32( pImp->pSlot->GetSlotId() ); - OSL_FAIL( aStr.GetBuffer() ); + rtl::OStringBuffer aStr(RTL_CONSTASCII_STRINGPARAM( + "Recording not exported slot: ")); + aStr.append(static_cast<sal_Int32>(pImp->pSlot->GetSlotId())); + OSL_FAIL(aStr.getStr()); } if ( !pImp->pSlot->pUnoName ) // playing it safe @@ -740,9 +743,10 @@ void SfxRequest::Done_Impl #ifdef DBG_UTIL if ( SFX_ITEM_SET != eState ) { - ByteString aStr( "Recording property not available: "); - aStr += ByteString::CreateFromInt32( pImp->pSlot->GetSlotId() ); - OSL_FAIL( aStr.GetBuffer() ); + rtl::OStringBuffer aStr(RTL_CONSTASCII_STRINGPARAM( + "Recording property not available: ")); + aStr.append(static_cast<sal_Int32>(pImp->pSlot->GetSlotId())); + OSL_FAIL(aStr.getStr()); } #endif uno::Sequence < beans::PropertyValue > aSeq; |