diff options
Diffstat (limited to 'canvas/source/opengl/ogl_canvasbitmap.cxx')
-rw-r--r-- | canvas/source/opengl/ogl_canvasbitmap.cxx | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/canvas/source/opengl/ogl_canvasbitmap.cxx b/canvas/source/opengl/ogl_canvasbitmap.cxx index 2a476ec91e58..0020cc39a9cd 100644 --- a/canvas/source/opengl/ogl_canvasbitmap.cxx +++ b/canvas/source/opengl/ogl_canvasbitmap.cxx @@ -9,7 +9,9 @@ #include <sal/config.h> -#include <tools/diagnose_ex.h> +#include <comphelper/diagnose_ex.hxx> + +#include <utility> #include "ogl_canvasbitmap.hxx" @@ -19,9 +21,9 @@ using namespace ::com::sun::star; namespace oglcanvas { CanvasBitmap::CanvasBitmap( const geometry::IntegerSize2D& rSize, - const SpriteCanvasRef& rDevice, + SpriteCanvasRef rDevice, SpriteDeviceHelper& rDeviceHelper ) : - mpDevice( rDevice ) + mpDevice(std::move( rDevice )) { ENSURE_OR_THROW( mpDevice.is(), "CanvasBitmap::CanvasBitmap(): Invalid surface or device" ); |