diff options
author | Noel Grandin <noel@peralex.com> | 2016-04-14 10:20:52 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-04-14 10:24:47 +0200 |
commit | b8eb2946511ce617323b13dffe2b1d9704e0be60 (patch) | |
tree | d5aa4f91e75d654a1cdfcd75f26dd4b813a73ff7 /UnoControls | |
parent | d8644c8edb405abd9d71e62e43e898c1d2a28fd2 (diff) |
loplugin:passstuffbyref in various
Change-Id: I80070c83204e531c2f599f8a56193d6ffe0e5022
Diffstat (limited to 'UnoControls')
-rw-r--r-- | UnoControls/inc/basecontrol.hxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/UnoControls/inc/basecontrol.hxx b/UnoControls/inc/basecontrol.hxx index 1ecd6a840df7..6ea4bd12ac63 100644 --- a/UnoControls/inc/basecontrol.hxx +++ b/UnoControls/inc/basecontrol.hxx @@ -361,11 +361,11 @@ public: protected: using OComponentHelper::disposing; - const css::uno::Reference< css::uno::XComponentContext > impl_getComponentContext() { return m_xComponentContext;} + const css::uno::Reference< css::uno::XComponentContext >& impl_getComponentContext() { return m_xComponentContext;} - const css::uno::Reference< css::awt::XWindow > impl_getPeerWindow() { return m_xPeerWindow;} + const css::uno::Reference< css::awt::XWindow >& impl_getPeerWindow() { return m_xPeerWindow;} - const css::uno::Reference< css::awt::XGraphics > impl_getGraphicsPeer() { return m_xGraphicsPeer;} + const css::uno::Reference< css::awt::XGraphics >& impl_getGraphicsPeer() { return m_xGraphicsPeer;} const sal_Int32& impl_getWidth() { return m_nWidth;} @@ -381,7 +381,7 @@ protected: virtual void impl_recalcLayout( const css::awt::WindowEvent& aEvent ); - css::uno::Reference< css::uno::XInterface > impl_getDelegator() { return m_xDelegator;} + const css::uno::Reference< css::uno::XInterface >& impl_getDelegator() { return m_xDelegator;} private: |