diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-10-07 10:12:16 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-10-07 11:46:58 +0100 |
commit | b8cf30e93f18ddc16fd648976a41a6bbb6c6d8b2 (patch) | |
tree | 2f1aeba61b0b943fcd67d3f4b2ca73002eaf60dd /sw/source/ui/config/optpage.cxx | |
parent | 511b3ce85ebb2261f5ea866efdb333eaf94c64f8 (diff) |
Related: fdo#38838 remove UniString::SearchAndReplaceAscii
Change-Id: I86019d7ab248679cd8518a621fe8e3721b44aeb0
Diffstat (limited to 'sw/source/ui/config/optpage.cxx')
-rw-r--r-- | sw/source/ui/config/optpage.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sw/source/ui/config/optpage.cxx b/sw/source/ui/config/optpage.cxx index a92ea298b8c4..1e368ef8cdeb 100644 --- a/sw/source/ui/config/optpage.cxx +++ b/sw/source/ui/config/optpage.cxx @@ -752,14 +752,13 @@ void SwStdFontTabPage::Reset( const SfxItemSet& rSet) if( SFX_ITEM_SET == rSet.GetItemState(nLangSlot, sal_False, &pLang)) eLanguage = ((const SvxLanguageItem*)pLang)->GetValue(); - String sTmp = pLabelFT->GetText(); - String sToReplace = sScriptWestern; + OUString sTmp = pLabelFT->GetText(); + OUString sToReplace = sScriptWestern; if(FONT_GROUP_CJK == nFontGroup ) sToReplace = sScriptAsian; else if(FONT_GROUP_CTL == nFontGroup ) sToReplace = sScriptComplex; - sTmp.SearchAndReplaceAscii("%1", sToReplace); - pLabelFT->SetText(sTmp); + pLabelFT->SetText(sTmp.replaceFirst("%1", sToReplace)); const SfxPoolItem* pItem; |