summaryrefslogtreecommitdiff
path: root/drawinglayer/source/primitive2d/mediaprimitive2d.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'drawinglayer/source/primitive2d/mediaprimitive2d.cxx')
-rw-r--r--drawinglayer/source/primitive2d/mediaprimitive2d.cxx13
1 files changed, 7 insertions, 6 deletions
diff --git a/drawinglayer/source/primitive2d/mediaprimitive2d.cxx b/drawinglayer/source/primitive2d/mediaprimitive2d.cxx
index e097d2d98ae7..124db4133cff 100644
--- a/drawinglayer/source/primitive2d/mediaprimitive2d.cxx
+++ b/drawinglayer/source/primitive2d/mediaprimitive2d.cxx
@@ -21,6 +21,7 @@
#include <basegfx/polygon/b2dpolygon.hxx>
#include <basegfx/polygon/b2dpolygontools.hxx>
#include <drawinglayer/primitive2d/PolyPolygonColorPrimitive2D.hxx>
+#include <utility>
#include <vcl/GraphicObject.hxx>
#include <drawinglayer/primitive2d/graphicprimitive2d.hxx>
#include <drawinglayer/geometry/viewinformation2d.hxx>
@@ -91,16 +92,16 @@ namespace drawinglayer::primitive2d
}
MediaPrimitive2D::MediaPrimitive2D(
- const basegfx::B2DHomMatrix& rTransform,
- const OUString& rURL,
+ basegfx::B2DHomMatrix aTransform,
+ OUString aURL,
const basegfx::BColor& rBackgroundColor,
sal_uInt32 nDiscreteBorder,
- const Graphic &rSnapshot)
- : maTransform(rTransform),
- maURL(rURL),
+ Graphic aSnapshot)
+ : maTransform(std::move(aTransform)),
+ maURL(std::move(aURL)),
maBackgroundColor(rBackgroundColor),
mnDiscreteBorder(nDiscreteBorder),
- maSnapshot(rSnapshot)
+ maSnapshot(std::move(aSnapshot))
{
}