From cc9aeefcc0f4ac08176156e52de2885675efedd1 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Sun, 17 Jul 2011 10:58:28 +0100 Subject: ByteString->OStringBUffer --- sfx2/source/control/request.cxx | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) (limited to 'sfx2/source/control/request.cxx') 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 #include +#include //=================================================================== @@ -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(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(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(pImp->pSlot->GetSlotId())); + OSL_FAIL(aStr.getStr()); } #endif uno::Sequence < beans::PropertyValue > aSeq; -- cgit