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 | efee9886d237f14e8394bdc423d646b494003149 (patch) | |
tree | 9bf76c859876bfb0940a09324ce11f17f3521f1d /sfx2 | |
parent | 2cd552cc75ce043bcee29a8984198f8f359e47b7 (diff) |
ByteString->OStringBUffer
Diffstat (limited to 'sfx2')
-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 bc4801cfbf..d578f4c830 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; |