diff options
author | Michael Stahl <mstahl@redhat.com> | 2017-02-03 16:48:02 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2017-02-03 18:20:07 +0100 |
commit | f6596a35c2d9a8c365bb78e1256a2def57ee1a36 (patch) | |
tree | 813f54d4144d143d365caa2f1f9d43f495f344ae /sw/source/core/doc/docbm.cxx | |
parent | 8c8d7ef3d8e7fbeee459089374b76248119d17b3 (diff) |
sw: make lcl_DebugMarks output more readable, pos. at the start
Change-Id: If9c151faefa3d109af2df7933a275c667880fb75
Diffstat (limited to 'sw/source/core/doc/docbm.cxx')
-rw-r--r-- | sw/source/core/doc/docbm.cxx | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/sw/source/core/doc/docbm.cxx b/sw/source/core/doc/docbm.cxx index 9b50b036e17d..473047bf236c 100644 --- a/sw/source/core/doc/docbm.cxx +++ b/sw/source/core/doc/docbm.cxx @@ -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; }; } |