diff options
author | Jean-Noël Rouvignac <jn.rouvignac@gmail.com> | 2013-02-01 09:33:19 +0100 |
---|---|---|
committer | Tor Lillqvist <tml@iki.fi> | 2013-02-14 13:20:14 +0000 |
commit | 77fd448d0990adc79406e13a127b2b1834984b71 (patch) | |
tree | 3b8d1b23e7029dedcb97eb1d38ba83c91dfdac51 /sfx2/source/dialog/srchdlg.cxx | |
parent | 5502501a8848c771aff5a77448a02451e22398a4 (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/dialog/srchdlg.cxx')
-rw-r--r-- | sfx2/source/dialog/srchdlg.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sfx2/source/dialog/srchdlg.cxx b/sfx2/source/dialog/srchdlg.cxx index 4f6fe256d60c..0cf9690d9896 100644 --- a/sfx2/source/dialog/srchdlg.cxx +++ b/sfx2/source/dialog/srchdlg.cxx @@ -34,7 +34,6 @@ using namespace ::com::sun::star::uno; namespace sfx2 { -#define USERITEM_NAME DEFINE_CONST_OUSTRING("UserItem") #define MAX_SAVE_COUNT (sal_uInt16)10 // ============================================================================ @@ -84,7 +83,7 @@ void SearchDialog::LoadConfig() if ( aViewOpt.Exists() ) { m_sWinState = rtl::OUStringToOString(aViewOpt.GetWindowState(), RTL_TEXTENCODING_ASCII_US); - Any aUserItem = aViewOpt.GetUserItem( USERITEM_NAME ); + Any aUserItem = aViewOpt.GetUserItem( "UserItem" ); ::rtl::OUString aTemp; if ( aUserItem >>= aTemp ) { @@ -129,7 +128,7 @@ void SearchDialog::SaveConfig() sUserData += String::CreateFromInt32( m_aBackwardsBox.IsChecked() ? 1 : 0 ); Any aUserItem = makeAny( ::rtl::OUString( sUserData ) ); - aViewOpt.SetUserItem( USERITEM_NAME, aUserItem ); + aViewOpt.SetUserItem( "UserItem", aUserItem ); } IMPL_LINK_NOARG(SearchDialog, FindHdl) |