Avoid some OUString concatenations

Change-Id: I73c5af00bee383de6e0c39932e91495632eb9dfb
This commit is contained in:
Matteo Casalin
2014-03-30 11:44:07 +02:00
parent 057c882c82
commit 1f1aa85a18

View File

@@ -957,15 +957,12 @@ sal_uInt16 SwFldRefPage::GetGroup()
void SwFldRefPage::FillUserData()
{
OUString sData(USER_DATA_VERSION);
sData += ";";
sal_Int32 nTypeSel = m_pTypeLB->GetSelectEntryPos();
if( LISTBOX_ENTRY_NOTFOUND == nTypeSel )
nTypeSel = USHRT_MAX;
else
nTypeSel = sal::static_int_cast< sal_uInt16 >(reinterpret_cast< sal_uIntPtr >(m_pTypeLB->GetEntryData( nTypeSel )));
sData += OUString::number( nTypeSel );
SetUserData(sData);
SetUserData( USER_DATA_VERSION ";" + OUString::number( nTypeSel ));
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */