sd/source/ui/sidebar/MasterPageContainer.cxx | 2 +- svl/source/items/itempool.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
New commits: commit fb38c6d5e0eb4093cf9612f18d22811812adab17 Author: Noel Grandin <noel.gran...@collabora.co.uk> AuthorDate: Mon Dec 10 12:22:23 2018 +0200 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Mon Dec 10 15:08:43 2018 +0100 simplify some copy construction Change-Id: Icc20ae913052a7ae96c0722a458d75bbb5eef1cd Reviewed-on: https://gerrit.libreoffice.org/64862 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> diff --git a/sd/source/ui/sidebar/MasterPageContainer.cxx b/sd/source/ui/sidebar/MasterPageContainer.cxx index 2a58f3619ff0..b806a91661e6 100644 --- a/sd/source/ui/sidebar/MasterPageContainer.cxx +++ b/sd/source/ui/sidebar/MasterPageContainer.cxx @@ -913,7 +913,7 @@ void MasterPageContainer::Implementation::FireContainerChange ( MasterPageContainerChangeEvent::EventType eType, Token aToken) { - ::std::vector<Link<MasterPageContainerChangeEvent&,void>> aCopy(maChangeListeners.begin(),maChangeListeners.end()); + ::std::vector<Link<MasterPageContainerChangeEvent&,void>> aCopy(maChangeListeners); MasterPageContainerChangeEvent aEvent; aEvent.meEventType = eType; aEvent.maChildToken = aToken; 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 (!)"); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits