diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-06-05 08:34:22 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-06-05 09:22:51 +0200 |
commit | 17a2c9e8e2361de27013a25e51f3a3ca729f1b31 (patch) | |
tree | 1c89bc104e5630fb71ff0a5b12c464ca2aceebc3 /xmlsecurity | |
parent | 8fa4b0429b514c0d696ebfc2e47418292d7ec367 (diff) |
clang-tidy performance-unnecessary-value-param
Change-Id: I6ed8c54c7c45931d91709cc818f2483c70197192
Reviewed-on: https://gerrit.libreoffice.org/38400
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmlsecurity')
-rw-r--r-- | xmlsecurity/source/gpg/CertificateImpl.cxx | 2 | ||||
-rw-r--r-- | xmlsecurity/source/gpg/CertificateImpl.hxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/xmlsecurity/source/gpg/CertificateImpl.cxx b/xmlsecurity/source/gpg/CertificateImpl.cxx index a00b0336fee1..ba329a3c4e10 100644 --- a/xmlsecurity/source/gpg/CertificateImpl.cxx +++ b/xmlsecurity/source/gpg/CertificateImpl.cxx @@ -187,7 +187,7 @@ const Sequence< sal_Int8>& CertificateImpl::getUnoTunnelId() { return CertificateImplUnoTunnelId::get().getSeq(); } -void CertificateImpl::setCertificate(GpgME::Key key) +void CertificateImpl::setCertificate(const GpgME::Key& key) { m_pKey = key; } diff --git a/xmlsecurity/source/gpg/CertificateImpl.hxx b/xmlsecurity/source/gpg/CertificateImpl.hxx index cf9ab06c181f..c22400b865a6 100644 --- a/xmlsecurity/source/gpg/CertificateImpl.hxx +++ b/xmlsecurity/source/gpg/CertificateImpl.hxx @@ -79,7 +79,7 @@ public: virtual css::uno::Sequence<sal_Int8> getSHA256Thumbprint() override; // Helper methods - void setCertificate(GpgME::Key key); + void setCertificate(const GpgME::Key& key); const GpgME::Key* getCertificate() const; } ; |