Kaydet (Commit) 796676e0 authored tarafından Noel Grandin's avatar Noel Grandin

inline IMark::StartsAfter

Change-Id: I2b7e2df1ad3bfddb3182691720fa3aa1cdf21721
Reviewed-on: https://gerrit.libreoffice.org/72984
Tested-by: Jenkins
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst 18775b18
...@@ -64,8 +64,6 @@ namespace sw { namespace mark ...@@ -64,8 +64,6 @@ namespace sw { namespace mark
{ return GetMarkStart() < rOther.GetMarkStart(); } { return GetMarkStart() < rOther.GetMarkStart(); }
bool operator==(const IMark& rOther) const bool operator==(const IMark& rOther) const
{ return GetMarkStart() == rOther.GetMarkStart(); } { return GetMarkStart() == rOther.GetMarkStart(); }
bool StartsAfter(const SwPosition& rPos) const
{ return GetMarkStart() > rPos; }
bool EndsBefore(const SwPosition& rPos) const bool EndsBefore(const SwPosition& rPos) const
{ return GetMarkEnd() < rPos; } { return GetMarkEnd() < rPos; }
......
...@@ -175,7 +175,7 @@ namespace ...@@ -175,7 +175,7 @@ namespace
bool operator()(SwPosition const& rPos, bool operator()(SwPosition const& rPos,
std::shared_ptr<sw::mark::IMark> const& pMark) std::shared_ptr<sw::mark::IMark> const& pMark)
{ {
return pMark->StartsAfter(rPos); return pMark->GetMarkStart() > rPos;
} }
}; };
...@@ -291,7 +291,7 @@ namespace ...@@ -291,7 +291,7 @@ namespace
{ {
// Once we reach a mark starting after the target pos // Once we reach a mark starting after the target pos
// we do not need to continue // we do not need to continue
if(ppCurrentMark->get()->StartsAfter(rPos)) if(ppCurrentMark->get()->GetMarkStart() > rPos)
break; break;
if(IDocumentMarkAccess::GetType(**ppCurrentMark) == eType) if(IDocumentMarkAccess::GetType(**ppCurrentMark) == eType)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment