[Libreoffice-commits] core.git: sd/source svl/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Mon Dec 10 14:09:04 UTC 2018


 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.grandin at collabora.co.uk>
AuthorDate: Mon Dec 10 12:22:23 2018 +0200
Commit:     Noel Grandin <noel.grandin at 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.grandin at 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 (!)");


More information about the Libreoffice-commits mailing list