From 4ccd802d9a0530ec74b52d2ad7fbaa2d085223cb Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 14 Jul 2017 10:34:38 +0200 Subject: use more OUString::operator== in svx Change-Id: Ice996c741e239767a7a15fe9b11147f5384150ba Reviewed-on: https://gerrit.libreoffice.org/39940 Tested-by: Jenkins Reviewed-by: Noel Grandin --- .../unodialogs/textconversiondlgs/chinese_dictionarydialog.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'svx/source/unodialogs/textconversiondlgs/chinese_dictionarydialog.cxx') 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; } -- cgit v1.2.3