summaryrefslogtreecommitdiff
path: root/svl
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-12-10 12:22:23 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-12-10 15:08:43 +0100
commitfb38c6d5e0eb4093cf9612f18d22811812adab17 (patch)
tree6394885051f1734c0a0e5c9f8da662de90724784 /svl
parente949621d06a31dc727db96824779630cc7b579f9 (diff)
simplify some copy construction
Change-Id: Icc20ae913052a7ae96c0722a458d75bbb5eef1cd Reviewed-on: https://gerrit.libreoffice.org/64862 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svl')
-rw-r--r--svl/source/items/itempool.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/svl/source/items/itempool.cxx b/svl/source/items/itempool.cxx
index 614db99b1791..f40c1bca5578 100644
--- a/svl/source/items/itempool.cxx
+++ b/svl/source/items/itempool.cxx
@@ -352,7 +352,7 @@ void SfxItemPool::Free(SfxItemPool* pPool)
return;
// tell all the registered SfxItemPoolUsers that the pool is in destruction
- std::vector<SfxItemPoolUser*> aListCopy(pPool->pImpl->maSfxItemPoolUsers.begin(), pPool->pImpl->maSfxItemPoolUsers.end());
+ std::vector<SfxItemPoolUser*> aListCopy(pPool->pImpl->maSfxItemPoolUsers);
for(SfxItemPoolUser* pSfxItemPoolUser : aListCopy)
{
DBG_ASSERT(pSfxItemPoolUser, "corrupt SfxItemPoolUser list (!)");