From 4855257e52056241633c2b1d8159c3f0e71e05f3 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Sun, 31 Dec 2017 21:34:58 +0200 Subject: loplugin:passstuffbyref improved return in sw Change-Id: I4484ac461761e4c46364b4f473c7e62f8ec72103 Reviewed-on: https://gerrit.libreoffice.org/47243 Tested-by: Jenkins Reviewed-by: Noel Grandin --- xmlsecurity/inc/documentsignaturemanager.hxx | 4 ++-- xmlsecurity/inc/pdfsignaturehelper.hxx | 2 +- xmlsecurity/source/helper/documentsignaturemanager.cxx | 4 ++-- xmlsecurity/source/helper/pdfsignaturehelper.cxx | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) (limited to 'xmlsecurity') diff --git a/xmlsecurity/inc/documentsignaturemanager.hxx b/xmlsecurity/inc/documentsignaturemanager.hxx index f1cc8293de42..8a3837ded39b 100644 --- a/xmlsecurity/inc/documentsignaturemanager.hxx +++ b/xmlsecurity/inc/documentsignaturemanager.hxx @@ -81,8 +81,8 @@ public: /// Get the security environment. css::uno::Reference getSecurityEnvironment(); css::uno::Reference getGpgSecurityEnvironment(); - css::uno::Reference getSecurityContext(); - css::uno::Reference getGpgSecurityContext(); + css::uno::Reference const & getSecurityContext(); + css::uno::Reference const & getGpgSecurityContext(); }; #endif // INCLUDED_XMLSECURITY_INC_DOCUMENTSIGNATUREMANAGER_HXX diff --git a/xmlsecurity/inc/pdfsignaturehelper.hxx b/xmlsecurity/inc/pdfsignaturehelper.hxx index 7b89acb50aaa..392331832963 100644 --- a/xmlsecurity/inc/pdfsignaturehelper.hxx +++ b/xmlsecurity/inc/pdfsignaturehelper.hxx @@ -33,7 +33,7 @@ public: PDFSignatureHelper(); bool ReadAndVerifySignature(const css::uno::Reference& xInputStream); css::uno::Sequence GetDocumentSignatureInformations(const css::uno::Reference& xSecEnv) const; - SignatureInformations GetSignatureInformations() const; + SignatureInformations const & GetSignatureInformations() const; /// Return the ID of the next created signature. sal_Int32 GetNewSecurityId() const; diff --git a/xmlsecurity/source/helper/documentsignaturemanager.cxx b/xmlsecurity/source/helper/documentsignaturemanager.cxx index fd88d0a52e7e..9fb36dbb699e 100644 --- a/xmlsecurity/source/helper/documentsignaturemanager.cxx +++ b/xmlsecurity/source/helper/documentsignaturemanager.cxx @@ -571,12 +571,12 @@ uno::Reference DocumentSignatureManager::getG return mxGpgSecurityContext.is() ? mxGpgSecurityContext->getSecurityEnvironment() : uno::Reference(); } -uno::Reference DocumentSignatureManager::getSecurityContext() +uno::Reference const & DocumentSignatureManager::getSecurityContext() { return mxSecurityContext; } -uno::Reference DocumentSignatureManager::getGpgSecurityContext() +uno::Reference const & DocumentSignatureManager::getGpgSecurityContext() { return mxGpgSecurityContext; } diff --git a/xmlsecurity/source/helper/pdfsignaturehelper.cxx b/xmlsecurity/source/helper/pdfsignaturehelper.cxx index 5356705f7b17..c75266d8626e 100644 --- a/xmlsecurity/source/helper/pdfsignaturehelper.cxx +++ b/xmlsecurity/source/helper/pdfsignaturehelper.cxx @@ -62,7 +62,7 @@ bool PDFSignatureHelper::ReadAndVerifySignature(const uno::Reference