diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-05-26 15:32:29 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-05-26 22:14:02 +0200 |
commit | 18775b18917ff666260434a19326ab482219ba89 (patch) | |
tree | cc0e37c4716476c6f945d4b4f0dbde254a0d8189 /sw | |
parent | ed65a25a7b06ff4aefe18cc36e8606c5f7a55f71 (diff) |
inline IMark::StartsBefore
Change-Id: Ia4f4d57899821cf735a3babadd73bbd90e84afb0
Reviewed-on: https://gerrit.libreoffice.org/72983
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/inc/IMark.hxx | 2 | ||||
-rw-r--r-- | sw/source/core/doc/docbm.cxx | 4 |
2 files changed, 2 insertions, 4 deletions
diff --git a/sw/inc/IMark.hxx b/sw/inc/IMark.hxx index d4ac261ba5e0..ac033d72c61f 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 StartsBefore(const SwPosition& rPos) const - { return GetMarkStart() < rPos; } bool StartsAfter(const SwPosition& rPos) const { return GetMarkStart() > rPos; } bool EndsBefore(const SwPosition& rPos) const diff --git a/sw/source/core/doc/docbm.cxx b/sw/source/core/doc/docbm.cxx index 5f856cf4de0c..e242b32d74ea 100644 --- a/sw/source/core/doc/docbm.cxx +++ b/sw/source/core/doc/docbm.cxx @@ -164,7 +164,7 @@ namespace bool operator()(std::shared_ptr<sw::mark::IMark> const& pMark, SwPosition const& rPos) { - return pMark->StartsBefore(rPos); + return pMark->GetMarkStart() < rPos; } }; @@ -1045,7 +1045,7 @@ namespace sw { namespace mark pMark->GetMarkStart(), CompareIMarkStartsBefore()); for ( ; it != m_vAllMarks.end(); ++it) - if (pMark->StartsBefore((*it)->GetMarkStart())) + if (pMark->GetMarkStart() < (*it)->GetMarkStart()) break; else if (it->get() == pMark) { |