summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2013-10-17 11:43:40 +0200
committerThomas Arnhold <thomas@arnhold.org>2013-10-17 15:22:20 +0200
commitc65eb7e56934b22f9bea68e62c0a51fd59869f1c (patch)
tree969c97ef97180a4d70cb6b1ccc610c0240800d5c /sw
parent5df4743236c0d41ad0d28ba7e743f2ea4f74c8e5 (diff)
Related: fdo#38838 remove String::SearchAndReplace
Change-Id: I1cc52d0be360b05e722a18b3ca5d08b2b0b0842d
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/view/printdata.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/sw/source/core/view/printdata.cxx b/sw/source/core/view/printdata.cxx
index a55184ab2f80..ce90177ed43b 100644
--- a/sw/source/core/view/printdata.cxx
+++ b/sw/source/core/view/printdata.cxx
@@ -202,9 +202,8 @@ SwPrintUIOptions::SwPrintUIOptions(
// create "writer" section (new tab page in dialog)
SvtModuleOptions aModOpt;
- String aAppGroupname( aLocalizedStrings.GetString( 0 ) );
- aAppGroupname.SearchAndReplace( String( RTL_CONSTASCII_USTRINGPARAM( "%s" ) ),
- aModOpt.GetModuleName( SvtModuleOptions::E_SWRITER ) );
+ OUString aAppGroupname( aLocalizedStrings.GetString( 0 ) );
+ aAppGroupname = aAppGroupname.replaceFirst( "%s", aModOpt.GetModuleName( SvtModuleOptions::E_SWRITER ) );
m_aUIProperties[ nIdx++ ].Value = setGroupControlOpt("tabcontrol-page2", aAppGroupname, ".HelpID:vcl:PrintDialog:TabPage:AppPage");
// create sub section for Contents