summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-05-26 15:42:59 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-05-26 22:14:13 +0200
commit796676e0a3010ab64f43a799d3fe7e7d1a64867e (patch)
tree5f07090465af47dc1a04e59d3b7a6e53e66836f7 /sw
parent18775b18917ff666260434a19326ab482219ba89 (diff)
inline IMark::StartsAfter
Change-Id: I2b7e2df1ad3bfddb3182691720fa3aa1cdf21721 Reviewed-on: https://gerrit.libreoffice.org/72984 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw')
-rw-r--r--sw/inc/IMark.hxx2
-rw-r--r--sw/source/core/doc/docbm.cxx4
2 files changed, 2 insertions, 4 deletions
diff --git a/sw/inc/IMark.hxx b/sw/inc/IMark.hxx
index ac033d72c61f..7c0a51f8427d 100644
--- a/sw/inc/IMark.hxx
+++ b/sw/inc/IMark.hxx
@@ -64,8 +64,6 @@ namespace sw { namespace mark
{ return GetMarkStart() < rOther.GetMarkStart(); }
bool operator==(const IMark& rOther) const
{ return GetMarkStart() == rOther.GetMarkStart(); }
- bool StartsAfter(const SwPosition& rPos) const
- { return GetMarkStart() > rPos; }
bool EndsBefore(const SwPosition& rPos) const
{ return GetMarkEnd() < rPos; }
diff --git a/sw/source/core/doc/docbm.cxx b/sw/source/core/doc/docbm.cxx
index e242b32d74ea..7c27f481232e 100644
--- a/sw/source/core/doc/docbm.cxx
+++ b/sw/source/core/doc/docbm.cxx
@@ -175,7 +175,7 @@ namespace
bool operator()(SwPosition const& rPos,
std::shared_ptr<sw::mark::IMark> const& pMark)
{
- return pMark->StartsAfter(rPos);
+ return pMark->GetMarkStart() > rPos;
}
};
@@ -291,7 +291,7 @@ namespace
{
// Once we reach a mark starting after the target pos
// we do not need to continue
- if(ppCurrentMark->get()->StartsAfter(rPos))
+ if(ppCurrentMark->get()->GetMarkStart() > rPos)
break;
if(IDocumentMarkAccess::GetType(**ppCurrentMark) == eType)
{