summaryrefslogtreecommitdiff
path: root/sfx2/source/dialog/srchdlg.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sfx2/source/dialog/srchdlg.cxx')
-rw-r--r--sfx2/source/dialog/srchdlg.cxx5
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)