diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2016-01-30 19:09:35 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-01-31 12:04:02 +0000 |
commit | 1ef9f3988ee4dcbc77e1fdefa20442e044a67d4d (patch) | |
tree | 686b5f3247d28e19ba949b81fd5596dbe3a27401 /cui/source/dialogs | |
parent | 890ebf1cc6bb58ff21da19d7fd4b9b67eaa32a9c (diff) |
unnecessary use of OUString constructor
Change-Id: Idd31b0a53c8318af69bbcd32f6798721ec8eb8e1
Reviewed-on: https://gerrit.libreoffice.org/21945
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'cui/source/dialogs')
-rw-r--r-- | cui/source/dialogs/cuifmsearch.cxx | 2 | ||||
-rw-r--r-- | cui/source/dialogs/thesdlg.cxx | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/cui/source/dialogs/cuifmsearch.cxx b/cui/source/dialogs/cuifmsearch.cxx index 1a888ac4ef63..17d6da871044 100644 --- a/cui/source/dialogs/cuifmsearch.cxx +++ b/cui/source/dialogs/cuifmsearch.cxx @@ -424,7 +424,7 @@ IMPL_LINK_TYPED(FmSearchDialog, OnFieldSelected, ListBox&, rBox, void) sal_Int32 nCurrentContext = m_plbForm->GetSelectEntryPos(); if (nCurrentContext != LISTBOX_ENTRY_NOTFOUND) - m_arrContextFields[nCurrentContext] = OUString(m_plbField->GetSelectEntry()); + m_arrContextFields[nCurrentContext] = m_plbField->GetSelectEntry(); } IMPL_LINK_TYPED(FmSearchDialog, OnCheckBoxToggled, CheckBox&, rBox, void) diff --git a/cui/source/dialogs/thesdlg.cxx b/cui/source/dialogs/thesdlg.cxx index 80f9ae290581..556de064cd19 100644 --- a/cui/source/dialogs/thesdlg.cxx +++ b/cui/source/dialogs/thesdlg.cxx @@ -366,7 +366,7 @@ void SvxThesaurusDialog::LookUp_Impl() { OUString aText( m_pWordCB->GetText() ); - aLookUpText = OUString( aText ); + aLookUpText = aText; if (!aLookUpText.isEmpty() && (aLookUpHistory.empty() || aLookUpText != aLookUpHistory.top())) aLookUpHistory.push( aLookUpText ); @@ -476,7 +476,7 @@ SvxThesaurusDialog::SvxThesaurusDialog( m_pAlternativesCT->SetDoubleClickHdl( LINK( this, SvxThesaurusDialog, AlternativesDoubleClickHdl_Impl )); xThesaurus = xThes; - aLookUpText = OUString( rWord ); + aLookUpText = rWord; nLookUpLanguage = nLanguage; if (!rWord.isEmpty()) aLookUpHistory.push( rWord ); |