summaryrefslogtreecommitdiff
path: root/sfx2/source/doc/objcont.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-08-28 15:17:08 +0200
committerNoel Grandin <noel@peralex.com>2013-08-29 09:30:18 +0200
commitf9e78cd49f3c22b969531fa787ca63261d548f80 (patch)
treec2e34df65f751fdcff92a443d8071cf466327c0f /sfx2/source/doc/objcont.cxx
parent35c24f9b6e08ef1328df01b2d3d11ef518897130 (diff)
convert sfx2/source/doc/* from String to OUString
Change-Id: Id9a58c4dca372dc36bdd8a359c7c0101cfffd88c
Diffstat (limited to 'sfx2/source/doc/objcont.cxx')
-rw-r--r--sfx2/source/doc/objcont.cxx6
1 files changed, 3 insertions, 3 deletions
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;