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/miscdlgs/mvtabdlg.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/miscdlgs/mvtabdlg.cxx')
-rw-r--r-- | sc/source/ui/miscdlgs/mvtabdlg.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/ui/miscdlgs/mvtabdlg.cxx b/sc/source/ui/miscdlgs/mvtabdlg.cxx index 2a64d8738528..0d3abf9fd624 100644 --- a/sc/source/ui/miscdlgs/mvtabdlg.cxx +++ b/sc/source/ui/miscdlgs/mvtabdlg.cxx @@ -165,10 +165,10 @@ void ScMoveTableDlg::CheckNewTabName() const sal_Int32 nLast = pLbTable->GetEntryCount(); for ( sal_Int32 i=0; i<nLast && !bFound; ++i ) { - if ( aNewName.equals(pLbTable->GetEntry(i)) ) + if ( aNewName == pLbTable->GetEntry(i) ) { // Only for move within same document the same name is allowed. - if (!bMoveInCurrentDoc || !maDefaultName.equals( pEdTabName->GetText())) + if (!bMoveInCurrentDoc || maDefaultName != pEdTabName->GetText()) bFound = true; } } @@ -282,7 +282,7 @@ IMPL_LINK_NOARG(ScMoveTableDlg, OkHdl, Button*, void) { // Return an empty string, when the new name is the same as the // original name. - if (maDefaultName.equals(pEdTabName->GetText())) + if (maDefaultName == pEdTabName->GetText()) pEdTabName->SetText(OUString()); } |