summaryrefslogtreecommitdiffstats
path: root/drawinglayer
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2020-08-03 14:35:48 +0200
committerStephan Bergmann <sbergman@redhat.com>2020-08-03 18:13:59 +0200
commitab81dc6d57e7728f915d181eb2db8b82b225360b (patch)
treedf14505032c8d922b74a0b4594f63d683b20be03 /drawinglayer
parentValidate SELECT range (diff)
downloadcore-ab81dc6d57e7728f915d181eb2db8b82b225360b.tar.gz
core-ab81dc6d57e7728f915d181eb2db8b82b225360b.zip
-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@redhat.com>
Diffstat (limited to 'drawinglayer')
-rw-r--r--drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx5
1 files changed, 5 insertions, 0 deletions
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(