summaryrefslogtreecommitdiff
path: root/cppcanvas/source
diff options
context:
space:
mode:
Diffstat (limited to 'cppcanvas/source')
-rw-r--r--cppcanvas/source/inc/canvasgraphichelper.hxx4
-rw-r--r--cppcanvas/source/mtfrenderer/implrenderer.cxx2
-rw-r--r--cppcanvas/source/wrapper/implspritecanvas.hxx2
3 files changed, 4 insertions, 4 deletions
diff --git a/cppcanvas/source/inc/canvasgraphichelper.hxx b/cppcanvas/source/inc/canvasgraphichelper.hxx
index 076ce246b5e5..b992b1d409b0 100644
--- a/cppcanvas/source/inc/canvasgraphichelper.hxx
+++ b/cppcanvas/source/inc/canvasgraphichelper.hxx
@@ -55,8 +55,8 @@ namespace cppcanvas
protected:
// for our clients
// ===============
- CanvasSharedPtr getCanvas() const { return mpCanvas; }
- css::uno::Reference< css::rendering::XGraphicDevice > getGraphicDevice() const { return mxGraphicDevice; }
+ const CanvasSharedPtr& getCanvas() const { return mpCanvas; }
+ const css::uno::Reference< css::rendering::XGraphicDevice >& getGraphicDevice() const { return mxGraphicDevice; }
const css::rendering::RenderState& getRenderState() const;
private:
diff --git a/cppcanvas/source/mtfrenderer/implrenderer.cxx b/cppcanvas/source/mtfrenderer/implrenderer.cxx
index 4afe3f925025..bc716ba9786b 100644
--- a/cppcanvas/source/mtfrenderer/implrenderer.cxx
+++ b/cppcanvas/source/mtfrenderer/implrenderer.cxx
@@ -2698,7 +2698,7 @@ namespace cppcanvas
rSubset ) );
}
- ::basegfx::B2DRange getBounds() const
+ const ::basegfx::B2DRange& getBounds() const
{
return maBounds;
}
diff --git a/cppcanvas/source/wrapper/implspritecanvas.hxx b/cppcanvas/source/wrapper/implspritecanvas.hxx
index 4a5439699ef6..89b0fc300a8e 100644
--- a/cppcanvas/source/wrapper/implspritecanvas.hxx
+++ b/cppcanvas/source/wrapper/implspritecanvas.hxx
@@ -64,7 +64,7 @@ namespace cppcanvas
TransformationArbiter();
void setTransformation( const ::basegfx::B2DHomMatrix& rViewTransform );
- ::basegfx::B2DHomMatrix getTransformation() const { return maTransformation; }
+ const ::basegfx::B2DHomMatrix& getTransformation() const { return maTransformation; }
private:
::basegfx::B2DHomMatrix maTransformation;