summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-09-28 13:06:51 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-09-29 08:53:03 +0200
commit8a8864aeb710e4d17852dc9c0e02b03804a8bf3c (patch)
treebdec37c347a8dd6f63fdb169abe28ae667af85f6 /sw
parentce301dadcbbf8d0f0a71c7eaebca9bfad2e08801 (diff)
convert IsEqual/etc methods on ESelection to operators
Change-Id: Ia8424e701b6f22d0536ee7f3bdb0ecaaed94a3b9 Reviewed-on: https://gerrit.libreoffice.org/42904 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/uibase/dialog/SwSpellDialogChildWindow.cxx2
-rw-r--r--sw/source/uibase/docvw/edtwin.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/uibase/dialog/SwSpellDialogChildWindow.cxx b/sw/source/uibase/dialog/SwSpellDialogChildWindow.cxx
index c468050c323d..2ebbe2be324d 100644
--- a/sw/source/uibase/dialog/SwSpellDialogChildWindow.cxx
+++ b/sw/source/uibase/dialog/SwSpellDialogChildWindow.cxx
@@ -553,7 +553,7 @@ void SwSpellDialogChildWindow::GetFocus()
{
OutlinerView* pOLV = pSdrView->GetTextEditOutlinerView();
OSL_ENSURE(pOLV, "no OutlinerView in SwSpellDialogChildWindow::GetFocus()");
- if(!pOLV || !m_pSpellState->m_aESelection.IsEqual(pOLV->GetSelection()))
+ if(!pOLV || m_pSpellState->m_aESelection != pOLV->GetSelection())
bInvalidate = true;
}
}
diff --git a/sw/source/uibase/docvw/edtwin.cxx b/sw/source/uibase/docvw/edtwin.cxx
index 5d87ea7909f1..07c467b126fe 100644
--- a/sw/source/uibase/docvw/edtwin.cxx
+++ b/sw/source/uibase/docvw/edtwin.cxx
@@ -5671,7 +5671,7 @@ void SwEditWin::SelectMenuPosition(SwWrtShell& rSh, const Point& rMousePos )
ESelection aCompare(aDocPosition.nPara, aDocPosition.nIndex);
// make it a forward selection - otherwise the IsLess/IsGreater do not work :-(
aSelection.Adjust();
- if(!aCompare.IsLess(aSelection) && !aCompare.IsGreater(aSelection))
+ if(!(aCompare < aSelection) && !(aCompare > aSelection))
{
return;
}