diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-05-01 20:23:23 +0100 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-05-02 09:23:52 +0200 |
commit | 50419ba81149c064ac41c74afdb72d9c39e8be72 (patch) | |
tree | 1ceb1d5ab4ab8cc0096d1ea08a3f62bfea160571 /xmlsecurity | |
parent | 0d82ddb39e0cdbfde428eb4da7268cac4176f1bd (diff) |
cid#1596704 COPY_INSTEAD_OF_MOVE
Change-Id: I52867ef0a094e546a307b98089c259f9e8bbdabf
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166984
Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
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 894c924a9840..563011e6d688 100644 --- a/xmlsecurity/source/gpg/CertificateImpl.cxx +++ b/xmlsecurity/source/gpg/CertificateImpl.cxx @@ -220,7 +220,7 @@ sal_Int32 SAL_CALL CertificateImpl::getCertificateUsage() return KeyUsage::DIGITAL_SIGNATURE | KeyUsage::NON_REPUDIATION | KeyUsage::KEY_ENCIPHERMENT | KeyUsage::DATA_ENCIPHERMENT; } -void CertificateImpl::setCertificate(std::shared_ptr<GpgME::Context> ctx, const GpgME::Key& key) +void CertificateImpl::setCertificate(const std::shared_ptr<GpgME::Context>& ctx, const GpgME::Key& key) { m_pKey = key; m_pContext = ctx; diff --git a/xmlsecurity/source/gpg/CertificateImpl.hxx b/xmlsecurity/source/gpg/CertificateImpl.hxx index d15dec47a058..b8499b7135a9 100644 --- a/xmlsecurity/source/gpg/CertificateImpl.hxx +++ b/xmlsecurity/source/gpg/CertificateImpl.hxx @@ -82,7 +82,7 @@ public: virtual css::security::CertificateKind SAL_CALL getCertificateKind() override; // Helper methods - void setCertificate(std::shared_ptr<GpgME::Context> ctx, const GpgME::Key& key); + void setCertificate(const std::shared_ptr<GpgME::Context>& ctx, const GpgME::Key& key); const GpgME::Key* getCertificate() const; // XServiceInfo |