diff options
author | Noel Grandin <noel@peralex.com> | 2016-01-19 13:21:37 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-01-19 13:45:45 +0200 |
commit | a06eefdec89537ec1d939a5d001fd0d6f3eb9793 (patch) | |
tree | cdcc53fc8b7ac80234b2a5714686cffb8d6a90c8 /sw | |
parent | c0b199b3c69ace999db6e688466b2bbd9ad7c389 (diff) |
place it safe with MSVC 2008 build
revert a couple of pieces of commit
5fe99ea3ee7b33a80f1419f2a4c9c1ea56dd00ee
"loplugin:unusedmethods in sw"
Change-Id: If1eb9c7f01dcdea7ef7059165470357d5186ff93
Diffstat (limited to 'sw')
-rw-r--r-- | sw/inc/IMark.hxx | 24 |
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); |