summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorTakeshi Abe <tabe@fixedpoint.jp>2018-08-21 16:50:01 +0900
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-08-23 20:41:52 +0200
commit3d13da021afc5e0786dc95ea707fbea50616ded1 (patch)
tree096846c82b71699fc73af654cf98c043e2ca88dc /sw
parentde853c54e8712af499480bd3b6bfa41f1b1132ab (diff)
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>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/edit/eddel.cxx6
1 files changed, 3 insertions, 3 deletions
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 <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())