Kaydet (Commit) f6596a35 authored tarafından Michael Stahl's avatar Michael Stahl

sw: make lcl_DebugMarks output more readable, pos. at the start

Change-Id: If9c151faefa3d109af2df7933a275c667880fb75
üst 8c8d7ef3
......@@ -266,28 +266,28 @@ namespace
[&rName] (IDocumentMarkAccess::pMark_t const& rpMark) { return rpMark->GetName() == rName; } );
}
void lcl_DebugMarks(IDocumentMarkAccess::container_t vMarks)
void lcl_DebugMarks(IDocumentMarkAccess::container_t const& rMarks)
{
#if OSL_DEBUG_LEVEL > 0
SAL_INFO("sw.core", vMarks.size() << " Marks");
for(IDocumentMarkAccess::iterator_t ppMark = vMarks.begin();
ppMark != vMarks.end();
ppMark++)
SAL_INFO("sw.core", rMarks.size() << " Marks");
for (IDocumentMarkAccess::const_iterator_t ppMark = rMarks.begin();
ppMark != rMarks.end();
++ppMark)
{
IMark* pMark = ppMark->get();
const SwPosition* const pStPos = &pMark->GetMarkStart();
const SwPosition* const pEndPos = &pMark->GetMarkEnd();
SAL_INFO("sw.core",
typeid(*pMark).name() << " " <<
pMark->GetName() << " " <<
pStPos->nNode.GetIndex() << "," <<
pStPos->nContent.GetIndex() << " " <<
pEndPos->nNode.GetIndex() << "," <<
pEndPos->nContent.GetIndex());
pEndPos->nContent.GetIndex() << " " <<
typeid(*pMark).name() << " " <<
pMark->GetName());
}
#endif
assert(std::is_sorted(vMarks.begin(), vMarks.end(), lcl_MarkOrderingByStart));
(void) vMarks;
assert(std::is_sorted(rMarks.begin(), rMarks.end(), lcl_MarkOrderingByStart));
(void) rMarks;
};
}
......
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