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

Stephan Bergmann (via logerrit) logerrit at kemper.freedesktop.org
Mon Aug 3 16:14:34 UTC 2020


 drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx |    5 +++++
 1 file changed, 5 insertions(+)

New commits:
commit ab81dc6d57e7728f915d181eb2db8b82b225360b
Author:     Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Mon Aug 3 14:35:48 2020 +0200
Commit:     Stephan Bergmann <sbergman at redhat.com>
CommitDate: Mon Aug 3 18:13:59 2020 +0200

    -Werror=redundant-move
    
    ...now that GCC 11 trunk implements P1155R3 since <https://gcc.gnu.org/git/
    ?p=gcc.git;a=commit;h=1722e2013f05f1f1f99379dbaa0c0df356da731f> "c++: Implement
    C++20 implicit move changes. [PR91427]", at least in -std=c++20 mode
    
    Change-Id: Ie3c8f391fe4a6a99144ab35b2b29214ac5413fc8
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99999
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <sbergman at redhat.com>

diff --git a/drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx b/drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx
index 4c4a9fe3a329..174b529e82a5 100644
--- a/drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx
+++ b/drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx
@@ -26,6 +26,7 @@
 #include <tools/stream.hxx>
 #include <tools/diagnose_ex.h>
 #include <comphelper/processfactory.hxx>
+#include <config_global.h>
 #include <basegfx/polygon/b2dpolygonclipper.hxx>
 #include <basegfx/polygon/b2dpolypolygontools.hxx>
 #include <basegfx/polygon/b2dpolygontools.hxx>
@@ -2386,7 +2387,11 @@ VclMetafileProcessor2D::CreateBufferDevice(const basegfx::B2DRange& rCandidateRa
     else
         pBufferDevice.disposeAndClear();
 
+#if HAVE_P1155R3
+    return pBufferDevice;
+#else
     return std::move(pBufferDevice);
+#endif
 }
 
 void VclMetafileProcessor2D::processPrimitive2DOnPixelProcessor(


More information about the Libreoffice-commits mailing list