summaryrefslogtreecommitdiff
path: root/xmlsecurity
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2018-07-20 09:06:10 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2018-07-20 10:00:34 +0200
commitb6e3cad985252d8ce30ca9aa4c7553646c7ad1a5 (patch)
tree338ff3ce64423c948ee92301271f11886a731aa7 /xmlsecurity
parenta1dafed34690e76b0d6c1b45ce1a5f3d26f63344 (diff)
writerfilter, xmlsecurity: various small cleanups
That call in the RTFSprms copy ctor to the parent non-copy ctor was a bit odd. Change-Id: Ic219ec22c0b63472766a668406585dbbeebae2f7 Reviewed-on: https://gerrit.libreoffice.org/57763 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins
Diffstat (limited to 'xmlsecurity')
-rw-r--r--xmlsecurity/inc/documentsignaturemanager.hxx4
-rw-r--r--xmlsecurity/source/helper/documentsignaturemanager.cxx4
2 files changed, 4 insertions, 4 deletions
diff --git a/xmlsecurity/inc/documentsignaturemanager.hxx b/xmlsecurity/inc/documentsignaturemanager.hxx
index b5c6b1b985c7..1b29e27c9c21 100644
--- a/xmlsecurity/inc/documentsignaturemanager.hxx
+++ b/xmlsecurity/inc/documentsignaturemanager.hxx
@@ -89,9 +89,9 @@ public:
const css::uno::Reference<css::xml::crypto::XXMLSecurityContext>& xSecurityContext,
const OUString& rDescription, sal_Int32& nSecurityId, bool bAdESCompliant,
const OUString& rSignatureLineId = OUString(),
- const css::uno::Reference<css::graphic::XGraphic> xValidGraphic
+ const css::uno::Reference<css::graphic::XGraphic>& xValidGraphic
= css::uno::Reference<css::graphic::XGraphic>(),
- const css::uno::Reference<css::graphic::XGraphic> xInvalidGraphic
+ const css::uno::Reference<css::graphic::XGraphic>& xInvalidGraphic
= css::uno::Reference<css::graphic::XGraphic>());
/// Remove signature at nPosition.
void remove(sal_uInt16 nPosition);
diff --git a/xmlsecurity/source/helper/documentsignaturemanager.cxx b/xmlsecurity/source/helper/documentsignaturemanager.cxx
index db0d8aef381c..095abb543cb6 100644
--- a/xmlsecurity/source/helper/documentsignaturemanager.cxx
+++ b/xmlsecurity/source/helper/documentsignaturemanager.cxx
@@ -268,8 +268,8 @@ bool DocumentSignatureManager::add(
const uno::Reference<security::XCertificate>& xCert,
const uno::Reference<xml::crypto::XXMLSecurityContext>& xSecurityContext,
const OUString& rDescription, sal_Int32& nSecurityId, bool bAdESCompliant,
- const OUString& rSignatureLineId, const Reference<XGraphic> xValidGraphic,
- const Reference<XGraphic> xInvalidGraphic)
+ const OUString& rSignatureLineId, const Reference<XGraphic>& xValidGraphic,
+ const Reference<XGraphic>& xInvalidGraphic)
{
if (!xCert.is())
{