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

Mike Kaganski (via logerrit) logerrit at kemper.freedesktop.org
Sun Jun 13 17:07:36 UTC 2021


 svl/source/items/itemset.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit f7c7e4c63f5479de66d2fbed9db34972a5bd05aa
Author:     Mike Kaganski <mike.kaganski at collabora.com>
AuthorDate: Sun Jun 13 17:53:39 2021 +0200
Commit:     Mike Kaganski <mike.kaganski at collabora.com>
CommitDate: Sun Jun 13 19:06:57 2021 +0200

    Avoid [-Werror=redundant-move] in GCC 9.3.0
    
    Change-Id: I5ef8e094de76673c53b989fd659597b38c3f8d50
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117112
    Tested-by: Jenkins
    Reviewed-by: Mike Kaganski <mike.kaganski at collabora.com>

diff --git a/svl/source/items/itemset.cxx b/svl/source/items/itemset.cxx
index 9ae951ab5936..538a2a47a4e2 100644
--- a/svl/source/items/itemset.cxx
+++ b/svl/source/items/itemset.cxx
@@ -1771,7 +1771,7 @@ std::unique_ptr<SfxItemSet> SfxAllItemSet::Clone(bool bItems, SfxItemPool *pToPo
         std::unique_ptr<SfxAllItemSet> pNewSet(new SfxAllItemSet( *pToPool ));
         if ( bItems )
             pNewSet->Set( *this );
-        return std::move(pNewSet);
+        return pNewSet;
     }
     else
         return std::unique_ptr<SfxItemSet>(bItems ? new SfxAllItemSet(*this) : new SfxAllItemSet(*m_pPool));


More information about the Libreoffice-commits mailing list