Kaydet (Commit) 21d45e8b authored tarafından Julien Nabet's avatar Julien Nabet

Replace some lists by vectors in sw/doc part

Change-Id: If0ff7d8790824eae5701cca208761d3ee707eb58
Reviewed-on: https://gerrit.libreoffice.org/45747Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarJulien Nabet <serval2412@yahoo.fr>
üst 50e5ba2b
......@@ -1530,7 +1530,7 @@ bool SwDoc::IsInHeaderFooter( const SwNodeIndex& rIdx ) const
{
// get up by using the Anchor
#if OSL_DEBUG_LEVEL > 0
std::list<const SwFrameFormat*> checkFormats;
std::vector<const SwFrameFormat*> checkFormats;
for( auto pFormat : *GetSpzFrameFormats() )
{
const SwNodeIndex* pIdx = pFormat->GetContent().GetContentIdx();
......@@ -1547,7 +1547,7 @@ bool SwDoc::IsInHeaderFooter( const SwNodeIndex& rIdx ) const
if( pIdx && pFlyNd == &pIdx->GetNode() )
{
#if OSL_DEBUG_LEVEL > 0
std::list<const SwFrameFormat*>::iterator checkPos = std::find(
auto checkPos = std::find(
checkFormats.begin(), checkFormats.end(), pFormat );
assert( checkPos != checkFormats.end());
checkFormats.erase( checkPos );
......
......@@ -44,7 +44,6 @@
#include <UndoTable.hxx>
#include <redline.hxx>
#include <fmtfsize.hxx>
#include <list>
#include <deque>
#include <memory>
#include <o3tl/make_unique.hxx>
......@@ -77,8 +76,8 @@ namespace
bool mbCovered;
};
typedef std::list< SubBox > SubLine;
typedef std::list< SubLine > SubTable;
typedef std::vector< SubBox > SubLine;
typedef std::vector< SubLine > SubTable;
class TableStructure
{
......
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