summaryrefslogtreecommitdiff
path: root/svx/source/unodialogs/textconversiondlgs/chinese_dictionarydialog.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-07-14 10:34:38 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-07-14 11:30:42 +0200
commit4ccd802d9a0530ec74b52d2ad7fbaa2d085223cb (patch)
treed8125e758537f4f2c7af52ef55a9a082e8645d93 /svx/source/unodialogs/textconversiondlgs/chinese_dictionarydialog.cxx
parent4948a0137992b33c7adfd3d91eb7b0387da11dff (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/chinese_dictionarydialog.cxx')
-rw-r--r--svx/source/unodialogs/textconversiondlgs/chinese_dictionarydialog.cxx6
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;
}