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 #include #include +#include #include #include #include @@ -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(