summaryrefslogtreecommitdiff
path: root/xmlsecurity/inc
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2017-06-22 09:06:31 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2017-06-22 09:06:31 +0200
commit686dfc5ed53e37bc4a60227fcb10c1d537c8aa62 (patch)
tree1c7f8b79ef1aeb070fffce863fd3ee06703493de /xmlsecurity/inc
parent6025b2b2e2c8342c9d4da7517748552fe406fdbe (diff)
xmlsecurity: fix loplugin:passstuffbyref warnings
Change-Id: I627abfe33e9c2fc4243276706c1624ce19943678
Diffstat (limited to 'xmlsecurity/inc')
-rw-r--r--xmlsecurity/inc/digitalsignaturesdialog.hxx2
-rw-r--r--xmlsecurity/inc/documentsignaturemanager.hxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/xmlsecurity/inc/digitalsignaturesdialog.hxx b/xmlsecurity/inc/digitalsignaturesdialog.hxx
index e49419e57a4a..9f488bb91c9f 100644
--- a/xmlsecurity/inc/digitalsignaturesdialog.hxx
+++ b/xmlsecurity/inc/digitalsignaturesdialog.hxx
@@ -103,7 +103,7 @@ private:
css::uno::Reference<css::security::XCertificate> getCertificate(const SignatureInformation& rInfo);
css::uno::Reference<css::xml::crypto::XSecurityEnvironment> getSecurityEnvironmentForCertificate(
- css::uno::Reference<css::security::XCertificate> xCert);
+ const css::uno::Reference<css::security::XCertificate>& xCert);
//Checks if adding is allowed.
//See the spec at specs/www/appwide/security/Electronic_Signatures_and_Security.sxw
diff --git a/xmlsecurity/inc/documentsignaturemanager.hxx b/xmlsecurity/inc/documentsignaturemanager.hxx
index eed54a5a32c7..f354ad8c8cbb 100644
--- a/xmlsecurity/inc/documentsignaturemanager.hxx
+++ b/xmlsecurity/inc/documentsignaturemanager.hxx
@@ -62,7 +62,7 @@ public:
SignatureStreamHelper ImplOpenSignatureStream(sal_Int32 eStreamMode, bool bTempStream);
/// Add a new signature, using xCert as a signing certificate, and rDescription as description.
bool add(const css::uno::Reference<css::security::XCertificate>& xCert,
- const css::uno::Reference<css::xml::crypto::XXMLSecurityContext> xSecurityContext,
+ const css::uno::Reference<css::xml::crypto::XXMLSecurityContext>& xSecurityContext,
const OUString& rDescription, sal_Int32& nSecurityId, bool bAdESCompliant);
/// Remove signature at nPosition.
void remove(sal_uInt16 nPosition);