diff --git a/sw/source/core/edit/eddel.cxx b/sw/source/core/edit/eddel.cxx index f60fcbc5be54..658a650c8048 100644 --- a/sw/source/core/edit/eddel.cxx +++ b/sw/source/core/edit/eddel.cxx @@ -33,7 +33,7 @@ #include #include -#include +#include void SwEditShell::DeleteSel( SwPaM& rPam, bool* pUndo ) { @@ -158,7 +158,7 @@ bool SwEditShell::Copy( SwEditShell* pDestShell ) SET_CURR_SHELL( pDestShell ); // List of insert positions for smart insert of block selections - std::list< std::shared_ptr > aInsertList; + std::vector< std::shared_ptr > aInsertList; // Fill list of insert positions { @@ -210,7 +210,7 @@ bool SwEditShell::Copy( SwEditShell* pDestShell ) SwNodeIndex aSttNdIdx( pDestShell->GetDoc()->GetNodes() ); sal_Int32 nSttCntIdx = 0; // For block selection this list is filled with the insert positions - std::list< std::shared_ptr >::iterator pNextInsert = aInsertList.begin(); + auto pNextInsert = aInsertList.begin(); pDestShell->GetDoc()->GetIDocumentUndoRedo().StartUndo( SwUndoId::START, nullptr ); for(SwPaM& rPaM : GetCursor()->GetRingContainer())