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 c3aad423cf7f..1c4a139ae0f1 100644
--- a/sfx2/source/dialog/srchdlg.cxx
+++ b/sfx2/source/dialog/srchdlg.cxx
@@ -84,10 +84,9 @@ void SearchDialog::LoadConfig()
{
m_sWinState = OUStringToOString(aViewOpt.GetWindowState(), RTL_TEXTENCODING_ASCII_US);
Any aUserItem = aViewOpt.GetUserItem( "UserItem" );
- OUString aTemp;
- if ( aUserItem >>= aTemp )
+ OUString sUserData;
+ if ( aUserItem >>= sUserData )
{
- OUString sUserData( aTemp );
DBG_ASSERT( comphelper::string::getTokenCount(sUserData, ';') == 5, "invalid config data" );
sal_Int32 nIdx = 0;
OUString sSearchText = sUserData.getToken( 0, ';', nIdx );