sw: Prefer std::vector to undemanded std::list
Change-Id: I2003538f3a7cff2163cbb85f948c0bab9187dfeb Reviewed-on: https://gerrit.libreoffice.org/59379 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
committed by
Noel Grandin
parent
de853c54e8
commit
3d13da021a
@@ -33,7 +33,7 @@
|
||||
#include <globals.hrc>
|
||||
|
||||
#include <strings.hrc>
|
||||
#include <list>
|
||||
#include <vector>
|
||||
|
||||
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<SwPosition> > aInsertList;
|
||||
std::vector< std::shared_ptr<SwPosition> > 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<SwPosition> >::iterator pNextInsert = aInsertList.begin();
|
||||
auto pNextInsert = aInsertList.begin();
|
||||
|
||||
pDestShell->GetDoc()->GetIDocumentUndoRedo().StartUndo( SwUndoId::START, nullptr );
|
||||
for(SwPaM& rPaM : GetCursor()->GetRingContainer())
|
||||
|
||||
Reference in New Issue
Block a user