summaryrefslogtreecommitdiff
path: root/canvas
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-04-13 09:33:20 +0200
committerNoel Grandin <noel@peralex.com>2016-04-13 13:27:51 +0200
commit9b640c03e054f030b2a3cf17cc453d5bfacc4981 (patch)
treef53716d3f1ecef306ce8cf102cae82033f91e753 /canvas
parent311bc1fc8b39d7f2168a04437034fb5b29c2c8b2 (diff)
loplugin:passstuffbyref in canvas
Change-Id: Idde288ab4bb7935e5da2a84190fd4b398961d358
Diffstat (limited to 'canvas')
-rw-r--r--canvas/source/cairo/cairo_devicehelper.hxx2
-rw-r--r--canvas/source/cairo/cairo_spritedevicehelper.hxx2
-rw-r--r--canvas/source/opengl/ogl_bitmapcanvashelper.hxx2
-rw-r--r--canvas/source/tools/pagemanager.hxx2
-rw-r--r--canvas/source/vcl/devicehelper.hxx2
-rw-r--r--canvas/source/vcl/spritedevicehelper.hxx2
6 files changed, 6 insertions, 6 deletions
diff --git a/canvas/source/cairo/cairo_devicehelper.hxx b/canvas/source/cairo/cairo_devicehelper.hxx
index 6e6e46f93f35..430f91ae071c 100644
--- a/canvas/source/cairo/cairo_devicehelper.hxx
+++ b/canvas/source/cairo/cairo_devicehelper.hxx
@@ -91,7 +91,7 @@ namespace cairocanvas
void dumpScreenContent() const;
OutputDevice* getOutputDevice() const { return mpRefDevice; }
- ::cairo::SurfaceSharedPtr getSurface() { return mpSurface; }
+ const ::cairo::SurfaceSharedPtr& getSurface() { return mpSurface; }
::cairo::SurfaceSharedPtr createSurface( const ::basegfx::B2ISize& rSize, int aContent = CAIRO_CONTENT_COLOR_ALPHA );
::cairo::SurfaceSharedPtr createSurface( BitmapSystemData& rData, const Size& rSize );
diff --git a/canvas/source/cairo/cairo_spritedevicehelper.hxx b/canvas/source/cairo/cairo_spritedevicehelper.hxx
index d0f164864072..750b97f5bf6a 100644
--- a/canvas/source/cairo/cairo_spritedevicehelper.hxx
+++ b/canvas/source/cairo/cairo_spritedevicehelper.hxx
@@ -60,7 +60,7 @@ namespace cairocanvas
void notifySizeUpdate( const css::awt::Rectangle& rBounds );
void setSize( const ::basegfx::B2ISize& rSize );
- ::cairo::SurfaceSharedPtr getBufferSurface() { return mpBufferSurface; }
+ const ::cairo::SurfaceSharedPtr& getBufferSurface() { return mpBufferSurface; }
::cairo::SurfaceSharedPtr getWindowSurface();
::cairo::SurfaceSharedPtr createSurface( const ::basegfx::B2ISize& rSize, int aContent = CAIRO_CONTENT_COLOR_ALPHA );
::cairo::SurfaceSharedPtr createSurface( BitmapSystemData& rData, const Size& rSize );
diff --git a/canvas/source/opengl/ogl_bitmapcanvashelper.hxx b/canvas/source/opengl/ogl_bitmapcanvashelper.hxx
index cfb8ff8163b2..7b3722c84dd2 100644
--- a/canvas/source/opengl/ogl_bitmapcanvashelper.hxx
+++ b/canvas/source/opengl/ogl_bitmapcanvashelper.hxx
@@ -49,7 +49,7 @@ namespace oglcanvas
// BitmapCanvasHelper functionality
// ================================
- css::geometry::IntegerSize2D getSize() { return maSize; }
+ const css::geometry::IntegerSize2D& getSize() { return maSize; }
css::uno::Reference< css::rendering::XBitmapCanvas > queryBitmapCanvas();
diff --git a/canvas/source/tools/pagemanager.hxx b/canvas/source/tools/pagemanager.hxx
index 9161fe438406..03a5470ea2af 100644
--- a/canvas/source/tools/pagemanager.hxx
+++ b/canvas/source/tools/pagemanager.hxx
@@ -41,7 +41,7 @@ namespace canvas
// accelerated page, e.g. OpenGL texture.
::basegfx::B2ISize getPageSize() const;
- canvas::IRenderModuleSharedPtr getRenderModule() const { return mpRenderModule; }
+ const canvas::IRenderModuleSharedPtr& getRenderModule() const { return mpRenderModule; }
FragmentSharedPtr allocateSpace( const ::basegfx::B2ISize& rSize );
void free( const FragmentSharedPtr& pFragment );
diff --git a/canvas/source/vcl/devicehelper.hxx b/canvas/source/vcl/devicehelper.hxx
index 359f2b887c13..2a5d7ac2a42e 100644
--- a/canvas/source/vcl/devicehelper.hxx
+++ b/canvas/source/vcl/devicehelper.hxx
@@ -77,7 +77,7 @@ namespace vclcanvas
css::uno::Reference<
css::rendering::XColorSpace > getColorSpace() const;
- OutDevProviderSharedPtr getOutDev() const { return mpOutDev; }
+ const OutDevProviderSharedPtr& getOutDev() const { return mpOutDev; }
/** called when DumpScreenContent property is enabled on
XGraphicDevice, and writes out bitmaps of current screen.
diff --git a/canvas/source/vcl/spritedevicehelper.hxx b/canvas/source/vcl/spritedevicehelper.hxx
index fc7e6ba51a60..8c5d7271c5d6 100644
--- a/canvas/source/vcl/spritedevicehelper.hxx
+++ b/canvas/source/vcl/spritedevicehelper.hxx
@@ -54,7 +54,7 @@ namespace vclcanvas
css::uno::Any getSurfaceHandle() const;
void dumpScreenContent() const;
- BackBufferSharedPtr getBackBuffer() const { return mpBackBuffer; }
+ const BackBufferSharedPtr& getBackBuffer() const { return mpBackBuffer; }
void notifySizeUpdate( const css::awt::Rectangle& rBounds );