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 /uui | |
parent | d8644c8edb405abd9d71e62e43e898c1d2a28fd2 (diff) |
loplugin:passstuffbyref in various
Change-Id: I80070c83204e531c2f599f8a56193d6ffe0e5022
Diffstat (limited to 'uui')
-rw-r--r-- | uui/source/iahndl.cxx | 4 | ||||
-rw-r--r-- | uui/source/iahndl.hxx | 6 | ||||
-rw-r--r-- | uui/source/nameclashdlg.hxx | 2 | ||||
-rw-r--r-- | uui/source/sslwarndlg.hxx | 2 | ||||
-rw-r--r-- | uui/source/unknownauthdlg.hxx | 2 |
5 files changed, 8 insertions, 8 deletions
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; } |