From b8eb2946511ce617323b13dffe2b1d9704e0be60 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 14 Apr 2016 10:20:52 +0200 Subject: loplugin:passstuffbyref in various Change-Id: I80070c83204e531c2f599f8a56193d6ffe0e5022 --- cppcanvas/source/inc/canvasgraphichelper.hxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cppcanvas/source/inc') 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: -- cgit