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 --- uui/source/iahndl.cxx | 4 ++-- uui/source/iahndl.hxx | 6 +++--- uui/source/nameclashdlg.hxx | 2 +- uui/source/sslwarndlg.hxx | 2 +- uui/source/unknownauthdlg.hxx | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) (limited to 'uui') diff --git a/uui/source/iahndl.cxx b/uui/source/iahndl.cxx index c8e0601fa034..3af4acc797d4 100644 --- a/uui/source/iahndl.cxx +++ b/uui/source/iahndl.cxx @@ -973,13 +973,13 @@ UUIInteractionHelper::getParentProperty() return nullptr; } -uno::Reference< awt::XWindow> +const uno::Reference< awt::XWindow>& UUIInteractionHelper::getParentXWindow() const { return m_xWindowParam; } -OUString +const OUString& UUIInteractionHelper::getContextProperty() { return m_aContextParam; diff --git a/uui/source/iahndl.hxx b/uui/source/iahndl.hxx index 36a8fb46bf7c..48fac4ed2968 100644 --- a/uui/source/iahndl.hxx +++ b/uui/source/iahndl.hxx @@ -109,7 +109,7 @@ public: const OUString& aMessage, std::vector< OUString > const & rArguments ); - css::uno::Reference< css::uno::XComponentContext > + const css::uno::Reference< css::uno::XComponentContext >& getORB() const { return m_xContext; } private: @@ -131,10 +131,10 @@ private: vcl::Window * getParentProperty(); - css::uno::Reference< css::awt::XWindow> + const css::uno::Reference< css::awt::XWindow>& getParentXWindow() const; - OUString + const OUString& getContextProperty(); css::uno::Reference< css::task::XInteractionHandler2 > diff --git a/uui/source/nameclashdlg.hxx b/uui/source/nameclashdlg.hxx index 2c850d5b0cc7..0ddde55c4f32 100644 --- a/uui/source/nameclashdlg.hxx +++ b/uui/source/nameclashdlg.hxx @@ -49,7 +49,7 @@ public: bool bAllowOverwrite ); virtual ~NameClashDialog(); virtual void dispose() override; - OUString getNewName() const { return maNewName; } + const OUString& getNewName() const { return maNewName; } }; #endif // UUI_COOKIEDG_HXX diff --git a/uui/source/sslwarndlg.hxx b/uui/source/sslwarndlg.hxx index 006795705431..436dfdc4f350 100644 --- a/uui/source/sslwarndlg.hxx +++ b/uui/source/sslwarndlg.hxx @@ -42,7 +42,7 @@ public: const css::uno::Reference< css::security::XCertificate >& rXCert, const css::uno::Reference< css::uno::XComponentContext >& xContext ); - css::uno::Reference< css::security::XCertificate > getCert() { return m_rXCert; } + const css::uno::Reference< css::security::XCertificate >& getCert() { return m_rXCert; } virtual void response(short nResponseId) override; diff --git a/uui/source/unknownauthdlg.hxx b/uui/source/unknownauthdlg.hxx index 02631e7bd508..090f162d6ae1 100644 --- a/uui/source/unknownauthdlg.hxx +++ b/uui/source/unknownauthdlg.hxx @@ -49,7 +49,7 @@ public: virtual ~UnknownAuthDialog(); virtual void dispose() override; - css::uno::Reference< css::security::XCertificate > getCert() + const css::uno::Reference< css::security::XCertificate >& getCert() { return m_rXCert; } -- cgit