From f9e78cd49f3c22b969531fa787ca63261d548f80 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 28 Aug 2013 15:17:08 +0200 Subject: convert sfx2/source/doc/* from String to OUString Change-Id: Id9a58c4dca372dc36bdd8a359c7c0101cfffd88c --- sfx2/source/doc/objcont.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sfx2/source/doc/objcont.cxx') diff --git a/sfx2/source/doc/objcont.cxx b/sfx2/source/doc/objcont.cxx index 84a17e3cfaee..cbaccb47cefd 100644 --- a/sfx2/source/doc/objcont.cxx +++ b/sfx2/source/doc/objcont.cxx @@ -185,7 +185,7 @@ void SfxObjectShell::UpdateDocInfoForSave() } else if ( IsModified() ) { - String aUserName = SvtUserOptions().GetFullName(); + OUString aUserName = SvtUserOptions().GetFullName(); if ( !IsUseUserData() ) { // remove all data pointing to the current user @@ -462,8 +462,8 @@ void SfxObjectShell::UpdateFromTemplate_Impl( ) bLoad = sal_True; else if ( bCanUpdateFromTemplate == document::UpdateDocMode::ACCORDING_TO_CONFIG ) { - String sMessage( SfxResId(STR_QRYTEMPL_MESSAGE).toString() ); - sMessage.SearchAndReplace( OUString("$(ARG1)"), aTemplName ); + OUString sMessage( SfxResId(STR_QRYTEMPL_MESSAGE).toString() ); + sMessage = sMessage.replaceAll( "$(ARG1)", aTemplName ); sfx2::QueryTemplateBox aBox( GetDialogParent(), sMessage ); if ( RET_YES == aBox.Execute() ) bLoad = sal_True; -- cgit