summaryrefslogtreecommitdiffstats
path: root/uui/source/nameclashdlg.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'uui/source/nameclashdlg.cxx')
-rw-r--r--uui/source/nameclashdlg.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/uui/source/nameclashdlg.cxx b/uui/source/nameclashdlg.cxx
index 20c8bad93c03..2d83a53ba077 100644
--- a/uui/source/nameclashdlg.cxx
+++ b/uui/source/nameclashdlg.cxx
@@ -71,7 +71,7 @@ NameClashDialog::NameClashDialog( Window* pParent, ResMgr* pResMgr,
maBtnRename.SetClickHdl( aLink );
maBtnCancel.SetClickHdl( aLink );
- String aInfo;
+ OUString aInfo;
if ( bAllowOverwrite )
{
aInfo = ResId(STR_RENAME_OR_REPLACE, *pResMgr).toString();
@@ -88,8 +88,8 @@ NameClashDialog::NameClashDialog( Window* pParent, ResMgr* pResMgr,
maSameName = ResId(STR_SAME_NAME_USED, *pResMgr).toString();
- aInfo.SearchAndReplaceAscii( "%NAME", rClashingName );
- aInfo.SearchAndReplaceAscii( "%FOLDER", aPath );
+ aInfo = aInfo.replaceFirst( "%NAME", rClashingName );
+ aInfo = aInfo.replaceFirst( "%FOLDER", aPath );
maFTMessage.SetText( aInfo );
if ( !rProposedNewName.isEmpty() )
maEDNewName.SetText( rProposedNewName );