[Libreoffice-commits] core.git: sw/source
Julien Nabet
serval2412 at yahoo.fr
Sun Oct 8 18:34:30 UTC 2017
sw/source/core/layout/frmtool.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 9b8f1aa0b0d78de2d887d863ca0495fe35a29311
Author: Julien Nabet <serval2412 at yahoo.fr>
Date: Sun Oct 8 18:45:00 2017 +0200
Replace list by vector in frmtool (sw)
Change-Id: Ic29b8497227abfe1f407ad548037a8eaec318bcc
Reviewed-on: https://gerrit.libreoffice.org/43243
Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Julien Nabet <serval2412 at yahoo.fr>
diff --git a/sw/source/core/layout/frmtool.cxx b/sw/source/core/layout/frmtool.cxx
index 359c7c680692..dde40a20ab2a 100644
--- a/sw/source/core/layout/frmtool.cxx
+++ b/sw/source/core/layout/frmtool.cxx
@@ -969,7 +969,7 @@ void AppendObjs( const SwFrameFormats *pTable, sal_uLong nIndex,
SwFrame *pFrame, SwPageFrame *pPage, SwDoc* doc )
{
#if OSL_DEBUG_LEVEL > 0
- std::list<SwFrameFormat*> checkFormats;
+ std::vector<SwFrameFormat*> checkFormats;
for ( size_t i = 0; i < pTable->size(); ++i )
{
SwFrameFormat *pFormat = (*pTable)[i];
@@ -993,7 +993,7 @@ void AppendObjs( const SwFrameFormats *pTable, sal_uLong nIndex,
(rAnch.GetContentAnchor()->nNode.GetIndex() == nIndex) )
{
#if OSL_DEBUG_LEVEL > 0
- std::list<SwFrameFormat*>::iterator checkPos = std::find( checkFormats.begin(), checkFormats.end(), pFormat );
+ std::vector<SwFrameFormat*>::iterator checkPos = std::find( checkFormats.begin(), checkFormats.end(), pFormat );
assert( checkPos != checkFormats.end());
checkFormats.erase( checkPos );
#endif
More information about the Libreoffice-commits
mailing list