summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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
-rw-r--r--include/canvas/base/bufferedgraphicdevicebase.hxx2
-rw-r--r--include/canvas/base/canvascustomspritehelper.hxx4
-rw-r--r--include/canvas/spriteredrawmanager.hxx4
9 files changed, 11 insertions, 11 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 );
diff --git a/include/canvas/base/bufferedgraphicdevicebase.hxx b/include/canvas/base/bufferedgraphicdevicebase.hxx
index d737aa919d64..1f1034f742f5 100644
--- a/include/canvas/base/bufferedgraphicdevicebase.hxx
+++ b/include/canvas/base/bufferedgraphicdevicebase.hxx
@@ -159,7 +159,7 @@ namespace canvas
}
}
- css::uno::Reference< css::awt::XWindow2 > getWindow() const
+ const css::uno::Reference< css::awt::XWindow2 >& getWindow() const
{
return mxWindow;
}
diff --git a/include/canvas/base/canvascustomspritehelper.hxx b/include/canvas/base/canvascustomspritehelper.hxx
index fdffd6f5b8e7..8d8182143526 100644
--- a/include/canvas/base/canvascustomspritehelper.hxx
+++ b/include/canvas/base/canvascustomspritehelper.hxx
@@ -90,8 +90,8 @@ namespace canvas
// Sprite
bool isAreaUpdateOpaque( const ::basegfx::B2DRange& rUpdateArea ) const;
- ::basegfx::B2DPoint getPosPixel() const { return maPosition; }
- ::basegfx::B2DVector getSizePixel() const { return maSize; }
+ const ::basegfx::B2DPoint& getPosPixel() const { return maPosition; }
+ const ::basegfx::B2DVector& getSizePixel() const { return maSize; }
::basegfx::B2DRange getUpdateArea() const;
double getPriority() const { return mfPriority; }
diff --git a/include/canvas/spriteredrawmanager.hxx b/include/canvas/spriteredrawmanager.hxx
index ffc625a3cb9e..1329e010147b 100644
--- a/include/canvas/spriteredrawmanager.hxx
+++ b/include/canvas/spriteredrawmanager.hxx
@@ -124,7 +124,7 @@ namespace canvas
const Sprite::Reference& getSprite() const { return mpSprite; }
// #i61843# need to return by value here, to be used safely from bind
- ::basegfx::B2DRange getUpdateArea() const { return maTrueUpdateArea; }
+ const ::basegfx::B2DRange& getUpdateArea() const { return maTrueUpdateArea; }
bool needsUpdate() const { return mbNeedsUpdate; }
bool isPureMove() const { return mbIsPureMove; }
@@ -177,7 +177,7 @@ namespace canvas
{
}
- Sprite::Reference getSprite() const { return mpAffectedSprite; }
+ const Sprite::Reference& getSprite() const { return mpAffectedSprite; }
ChangeType meChangeType;
Sprite::Reference mpAffectedSprite;