summaryrefslogtreecommitdiff
path: root/sfx2/source/doc/QuerySaveDocument.cxx
diff options
context:
space:
mode:
authorJean-Noël Rouvignac <jn.rouvignac@gmail.com>2013-02-01 09:33:19 +0100
committerTor Lillqvist <tml@iki.fi>2013-02-14 13:20:14 +0000
commit77fd448d0990adc79406e13a127b2b1834984b71 (patch)
tree3b8d1b23e7029dedcb97eb1d38ba83c91dfdac51 /sfx2/source/doc/QuerySaveDocument.cxx
parent5502501a8848c771aff5a77448a02451e22398a4 (diff)
Removed several useless macros: UNISTRING, USTR, USTR_ASCII, ASCII_STR, ASCII_STRING, CONST_ASCII, ASCSTR, ASCII, DEFINE_CONST_UNICODE, DEFINE_CONST_OUSTRING
Change-Id: I96d690bf9f9b319e9eeafcf218ec5ce87f21215f Reviewed-on: https://gerrit.libreoffice.org/1954 Reviewed-by: Tor Lillqvist <tml@iki.fi> Tested-by: Tor Lillqvist <tml@iki.fi>
Diffstat (limited to 'sfx2/source/doc/QuerySaveDocument.cxx')
-rw-r--r--sfx2/source/doc/QuerySaveDocument.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/sfx2/source/doc/QuerySaveDocument.cxx b/sfx2/source/doc/QuerySaveDocument.cxx
index 49448eb5fe9e..7b24f7d55e15 100644
--- a/sfx2/source/doc/QuerySaveDocument.cxx
+++ b/sfx2/source/doc/QuerySaveDocument.cxx
@@ -32,9 +32,8 @@ short ExecuteQuerySaveDocument(Window* _pParent,const String& _rTitle)
{ // don't block Desktop::terminate() if there's no user to ask
return RET_NO;
}
- String aText( SfxResId(STR_QUERY_SAVE_DOCUMENT).toString() );
- aText.SearchAndReplace( DEFINE_CONST_UNICODE( "$(DOC)" ),
- _rTitle );
+ OUString aText( SfxResId(STR_QUERY_SAVE_DOCUMENT).toString() );
+ aText = aText.replaceFirst( "$(DOC)", _rTitle );
QueryBox aQBox( _pParent, WB_YES_NO_CANCEL | WB_DEF_YES, aText );
aQBox.SetText(SfxResId(STR_QUERY_SAVE_DOCUMENT_TITLE).toString()); // Window title
aQBox.SetButtonText( BUTTONID_NO, SfxResId(STR_NOSAVEANDCLOSE).toString() );