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

place it safe with MSVC 2008 build

revert a couple of pieces of commit
5fe99ea3
"loplugin:unusedmethods in sw"

Change-Id: If1eb9c7f01dcdea7ef7059165470357d5186ff93
üst c0b199b3
...@@ -137,6 +137,18 @@ namespace sw { namespace mark ...@@ -137,6 +137,18 @@ namespace sw { namespace mark
{ {
return pMark->StartsAfter(rPos); 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 // MSVC 2008 with _DEBUG calls this with parameters in wrong order
...@@ -148,6 +160,18 @@ namespace sw { namespace mark ...@@ -148,6 +160,18 @@ namespace sw { namespace mark
{ {
return pMark->StartsBefore(rPos); 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); OUString ExpandFieldmark(IFieldmark* pBM);
......
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