summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-07-13 21:30:25 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-07-14 15:25:28 +0100
commit9eb37608fd6f101312c80e31c80435273a47c353 (patch)
tree3b4baea99e0cedb447a2016c4ff6a19602399eef /sfx2
parent9882ee9e18ff5a6d8cde7e56933c27cc85d46fe9 (diff)
ByteString::CreateFromInt32->rtl::OString::valueOf
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/control/dispatch.cxx15
1 files changed, 9 insertions, 6 deletions
diff --git a/sfx2/source/control/dispatch.cxx b/sfx2/source/control/dispatch.cxx
index 431fad84c1..c26713720c 100644
--- a/sfx2/source/control/dispatch.cxx
+++ b/sfx2/source/control/dispatch.cxx
@@ -2432,19 +2432,22 @@ sal_Bool SfxDispatcher::_FillState
for ( const SfxPoolItem *pItem = aIter.FirstItem();
pItem;
pItem = aIter.NextItem() )
+ {
if ( !IsInvalidItem(pItem) && !pItem->ISA(SfxVoidItem) )
{
sal_uInt16 nSlotId = rState.GetPool()->GetSlotId(pItem->Which());
if ( !pItem->IsA(pIF->GetSlot(nSlotId)->GetType()->Type()) )
{
- ByteString aMsg( "item-type unequal to IDL (=> no BASIC)" );
- aMsg += "\nwith SID: ";
- aMsg += ByteString::CreateFromInt32( nSlotId );
- aMsg += "\nin ";
- aMsg += pIF->GetClassName();
- DbgOut( aMsg.GetBuffer(), DBG_OUT_ERROR, __FILE__, __LINE__);
+ rtl::OStringBuffer aMsg(RTL_CONSTASCII_STRINGPARAM(
+ "item-type unequal to IDL (=> no BASIC)"));
+ aMsg.append(RTL_CONSTASCII_STRINGPARAM("\nwith SID: "));
+ aMsg.append(static_cast<sal_Int32>(nSlotId));
+ aMsg.append(RTL_CONSTASCII_STRINGPARAM("\nin "));
+ aMsg.append(pIF->GetClassName());
+ DbgOut(aMsg.getStr(), DBG_OUT_ERROR, __FILE__, __LINE__);
}
}
+ }
}
#endif