diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-13 12:44:52 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-14 09:10:59 +0200 |
commit | d8e5a0db64fa022b54bddc42b1b1db0c1ddfe2d1 (patch) | |
tree | a35f8e42f3caa97132e2dc38042c393ef8fb59f4 /sc/source/ui/dbgui/filtdlg.cxx | |
parent | 3f893fe88fa60faeb0335f1708f4f2d4b8838191 (diff) |
use more OUString::operator== in sc
Change-Id: I1a7691fe59e5e93c15bd812f03366da814f9f3db
Reviewed-on: https://gerrit.libreoffice.org/39900
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/ui/dbgui/filtdlg.cxx')
-rw-r--r-- | sc/source/ui/dbgui/filtdlg.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sc/source/ui/dbgui/filtdlg.cxx b/sc/source/ui/dbgui/filtdlg.cxx index 6ce9b10bed84..12fbf3d4964e 100644 --- a/sc/source/ui/dbgui/filtdlg.cxx +++ b/sc/source/ui/dbgui/filtdlg.cxx @@ -581,7 +581,7 @@ void ScFilterDlg::UpdateHdrInValueList( size_t nList ) const ScTypedStrData& rHdrEntry = m_EntryLists[nColumn]->maList[nPos]; const OUString& aHdrStr = rHdrEntry.GetString(); - bool bWasThere = aHdrStr.equals(pValList->GetEntry(nListPos)); + bool bWasThere = aHdrStr == pValList->GetEntry(nListPos); bool bInclude = !pBtnHeader->IsChecked(); if (bInclude) // Include entry @@ -1043,7 +1043,7 @@ IMPL_LINK( ScFilterDlg, ValModifyHdl, Edit&, rEd, void ) nQE=i+nOffset; } - if ( aStrEmpty.equals(aStrVal) || aStrNotEmpty.equals(aStrVal) ) + if ( aStrEmpty == aStrVal || aStrNotEmpty == aStrVal ) { pLbCond->SelectEntry(OUString('=')); pLbCond->Disable(); @@ -1064,12 +1064,12 @@ IMPL_LINK( ScFilterDlg, ValModifyHdl, Edit&, rEd, void ) if ( rEntry.bDoQuery || maRefreshExceptQuery[nQE] ) { bool bByEmptyOrNotByEmpty = false; - if ( aStrEmpty.equals(aStrVal) ) + if ( aStrEmpty == aStrVal ) { bByEmptyOrNotByEmpty = true; rEntry.SetQueryByEmpty(); } - else if ( aStrNotEmpty.equals(aStrVal) ) + else if ( aStrNotEmpty == aStrVal ) { bByEmptyOrNotByEmpty = true; rEntry.SetQueryByNonEmpty(); |