summaryrefslogtreecommitdiff
path: root/svx/source/tbxctrls/lboxctrl.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-07-13 20:12:42 +0100
committerCaolán McNamara <caolanm@redhat.com>2013-07-14 14:04:03 +0100
commit82937ce3d7bc2382c4da22365d1245c9f7db178c (patch)
treedbae8b3a02a1b0f21326ba2d5da41cf946d48962 /svx/source/tbxctrls/lboxctrl.cxx
parent46894ec48eb33dc99dab807c9fcaf0caa7c6cd84 (diff)
String::SearchAndReplaceAllAscii -> OUString::replaceAll
Change-Id: I5091835c9f71c712f15996e5c6263fc5f21f6f96
Diffstat (limited to 'svx/source/tbxctrls/lboxctrl.cxx')
-rw-r--r--svx/source/tbxctrls/lboxctrl.cxx11
1 files changed, 5 insertions, 6 deletions
diff --git a/svx/source/tbxctrls/lboxctrl.cxx b/svx/source/tbxctrls/lboxctrl.cxx
index 758c9bb684eb..34fd302646e9 100644
--- a/svx/source/tbxctrls/lboxctrl.cxx
+++ b/svx/source/tbxctrls/lboxctrl.cxx
@@ -213,11 +213,10 @@ void SvxListBoxControl::Impl_SetInfo( sal_uInt16 nCount )
else
nId = SID_UNDO == GetSlotId() ? RID_SVXSTR_NUM_UNDO_ACTIONS : RID_SVXSTR_NUM_REDO_ACTIONS;
- aActionStr = String(SVX_RES(nId));
+ aActionStr = SVX_RESSTR(nId);
- String aText( aActionStr );
- aText.SearchAndReplaceAllAscii( "$(ARG1)", OUString::number( nCount ) );
- pPopupWin->SetText( aText );
+ OUString aText = aActionStr.replaceAll("$(ARG1)", OUString::number(nCount));
+ pPopupWin->SetText(aText);
}
@@ -310,8 +309,8 @@ SfxPopupWindow* SvxUndoRedoControl::CreatePopupWindow()
rListBox.InsertEntry( String( aUndoRedoList[n] ));
rListBox.SelectEntryPos( 0 );
- aActionStr = String( SVX_RES( SID_UNDO == GetSlotId() ?
- RID_SVXSTR_NUM_UNDO_ACTIONS : RID_SVXSTR_NUM_REDO_ACTIONS ) );
+ aActionStr = SVX_RESSTR(SID_UNDO == GetSlotId() ?
+ RID_SVXSTR_NUM_UNDO_ACTIONS : RID_SVXSTR_NUM_REDO_ACTIONS);
Impl_SetInfo( rListBox.GetSelectEntryCount() );
// move focus in floating window without