diff options
Diffstat (limited to 'sc/source/ui/docshell/docsh4.cxx')
-rw-r--r-- | sc/source/ui/docshell/docsh4.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/ui/docshell/docsh4.cxx b/sc/source/ui/docshell/docsh4.cxx index 6d3d4eff98e1..1d7e1d1b5d5e 100644 --- a/sc/source/ui/docshell/docsh4.cxx +++ b/sc/source/ui/docshell/docsh4.cxx @@ -1010,8 +1010,8 @@ void ScDocShell::Execute( SfxRequest& rReq ) catch ( uno::Exception& ) { } - String aMessage( ScGlobal::GetRscString( STR_FILE_LOCKED_TRY_LATER ) ); - aMessage.SearchAndReplaceAscii( "%1", aUserName ); + OUString aMessage( ScGlobal::GetRscString( STR_FILE_LOCKED_TRY_LATER ) ); + aMessage = aMessage.replaceFirst( "%1", aUserName ); WarningBox aBox( GetActiveDialogParent(), WinBits( WB_OK ), aMessage ); aBox.Execute(); |