summaryrefslogtreecommitdiff
path: root/canvas/source/tools/surface.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'canvas/source/tools/surface.cxx')
-rw-r--r--canvas/source/tools/surface.cxx9
1 files changed, 5 insertions, 4 deletions
diff --git a/canvas/source/tools/surface.cxx b/canvas/source/tools/surface.cxx
index 9769931a636e..9dfb0f7c9d36 100644
--- a/canvas/source/tools/surface.cxx
+++ b/canvas/source/tools/surface.cxx
@@ -22,17 +22,18 @@
#include <basegfx/matrix/b2dhommatrixtools.hxx>
#include <basegfx/polygon/b2dpolygonclipper.hxx>
#include <comphelper/scopeguard.hxx>
+#include <utility>
#include "surface.hxx"
namespace canvas
{
- Surface::Surface( const PageManagerSharedPtr& rPageManager,
- const std::shared_ptr<IColorBuffer>& rColorBuffer,
+ Surface::Surface( PageManagerSharedPtr rPageManager,
+ std::shared_ptr<IColorBuffer> xColorBuffer,
const ::basegfx::B2IPoint& rPos,
const ::basegfx::B2ISize& rSize ) :
- mpColorBuffer(rColorBuffer),
- mpPageManager(rPageManager),
+ mpColorBuffer(std::move(xColorBuffer)),
+ mpPageManager(std::move(rPageManager)),
maSourceOffset(rPos),
maSize(rSize),
mbIsDirty(true)