diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-14 10:34:38 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-14 11:30:42 +0200 |
commit | 4ccd802d9a0530ec74b52d2ad7fbaa2d085223cb (patch) | |
tree | d8125e758537f4f2c7af52ef55a9a082e8645d93 /svx/source/unodialogs/textconversiondlgs | |
parent | 4948a0137992b33c7adfd3d91eb7b0387da11dff (diff) |
use more OUString::operator== in svx
Change-Id: Ice996c741e239767a7a15fe9b11147f5384150ba
Reviewed-on: https://gerrit.libreoffice.org/39940
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/source/unodialogs/textconversiondlgs')
-rw-r--r-- | svx/source/unodialogs/textconversiondlgs/chinese_dictionarydialog.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/svx/source/unodialogs/textconversiondlgs/chinese_dictionarydialog.cxx b/svx/source/unodialogs/textconversiondlgs/chinese_dictionarydialog.cxx index 906b21a25e58..997a12d5a7c4 100644 --- a/svx/source/unodialogs/textconversiondlgs/chinese_dictionarydialog.cxx +++ b/svx/source/unodialogs/textconversiondlgs/chinese_dictionarydialog.cxx @@ -213,7 +213,7 @@ DictionaryEntry* DictionaryList::getTermEntry( const OUString& rTerm ) const for( sal_Int32 nN=GetRowCount(); nN--; ) { DictionaryEntry* pE = getEntryOnPos( nN ); - if( pE && rTerm.equals( pE->m_aTerm ) ) + if( pE && rTerm == pE->m_aTerm ) return pE; } return nullptr; @@ -257,7 +257,7 @@ sal_uIntPtr DictionaryList::deleteEntries( const OUString& rTerm ) for( sal_Int32 nN=GetRowCount(); nN--; ) { DictionaryEntry* pCurEntry = getEntryOnPos( nN ); - if( rTerm.equals( pCurEntry->m_aTerm ) ) + if( rTerm == pCurEntry->m_aTerm ) { nPos = nN; SvTreeListEntry* pCurLBEntry = GetEntryOnPos( nN ); @@ -697,7 +697,7 @@ void ChineseDictionaryDialog::updateButtons() { DictionaryEntry* pFirstSelectedEntry = getActiveDictionary().getFirstSelectedEntry(); bModify = !bAdd && getActiveDictionary().GetSelectedRowCount()==1 - && pFirstSelectedEntry && pFirstSelectedEntry->m_aTerm.equals( m_pED_Term->GetText() ); + && pFirstSelectedEntry && pFirstSelectedEntry->m_aTerm == m_pED_Term->GetText(); if( bModify && isEditFieldsContentEqualsSelectedListContent() ) bModify = false; } |