summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
Diffstat (limited to 'sw')
-rw-r--r--sw/inc/IMark.hxx24
1 files changed, 24 insertions, 0 deletions
diff --git a/sw/inc/IMark.hxx b/sw/inc/IMark.hxx
index 0a8860ed5ca8..5f891b8f7c3a 100644
--- a/sw/inc/IMark.hxx
+++ b/sw/inc/IMark.hxx
@@ -137,6 +137,18 @@ namespace sw { namespace mark
{
return pMark->StartsAfter(rPos);
}
+#ifdef DBG_UTIL
+ bool operator()(std::shared_ptr<sw::mark::IMark> const& pMark,
+ SwPosition const& rPos)
+ {
+ return pMark->StartsBefore(rPos);
+ }
+ bool operator()(std::shared_ptr<sw::mark::IMark> const& pMark1,
+ std::shared_ptr<sw::mark::IMark> const& pMark2)
+ {
+ return (*pMark1) < (*pMark2);
+ }
+#endif
};
// MSVC 2008 with _DEBUG calls this with parameters in wrong order
@@ -148,6 +160,18 @@ namespace sw { namespace mark
{
return pMark->StartsBefore(rPos);
}
+#ifdef DBG_UTIL
+ bool operator()(SwPosition const& rPos,
+ std::shared_ptr<sw::mark::IMark> const& pMark)
+ {
+ return pMark->StartsAfter(rPos);
+ }
+ bool operator()(std::shared_ptr<sw::mark::IMark> const& pMark1,
+ std::shared_ptr<sw::mark::IMark> const& pMark2)
+ {
+ return (*pMark1) < (*pMark2);
+ }
+#endif
};
OUString ExpandFieldmark(IFieldmark* pBM);