diff options
author | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2017-07-18 12:10:20 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2017-07-20 16:01:50 +0200 |
commit | 610254209a96fee9409a2853f4b5cbf8ab0eb3ee (patch) | |
tree | f496281142c82b8550276100fcf8a0efdc5ccd67 /xmlsecurity | |
parent | 615c2a2c54d3e7aefb4986ae7d8de81a42022988 (diff) |
Move namespace declaration to header file
Change-Id: I5388d649ff3c8da0ff055f4aed6036647a123939
Reviewed-on: https://gerrit.libreoffice.org/40130
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'xmlsecurity')
-rw-r--r-- | xmlsecurity/inc/xsecctl.hxx | 1 | ||||
-rw-r--r-- | xmlsecurity/source/helper/xsecctl.cxx | 3 |
2 files changed, 2 insertions, 2 deletions
diff --git a/xmlsecurity/inc/xsecctl.hxx b/xmlsecurity/inc/xsecctl.hxx index 27cb60e54dc0..0cab6691bb63 100644 --- a/xmlsecurity/inc/xsecctl.hxx +++ b/xmlsecurity/inc/xsecctl.hxx @@ -51,6 +51,7 @@ #define NS_DC "http://purl.org/dc/elements/1.1/" #define NS_XD "http://uri.etsi.org/01903/v1.3.2#" #define NS_MDSSI "http://schemas.openxmlformats.org/package/2006/digital-signature" +#define NS_LOEXT "urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0" #define ALGO_C14N "http://www.w3.org/TR/2001/REC-xml-c14n-20010315" #define ALGO_RSASHA1 "http://www.w3.org/2000/09/xmldsig#rsa-sha1" diff --git a/xmlsecurity/source/helper/xsecctl.cxx b/xmlsecurity/source/helper/xsecctl.cxx index e731951369c0..2ed07673a320 100644 --- a/xmlsecurity/source/helper/xsecctl.cxx +++ b/xmlsecurity/source/helper/xsecctl.cxx @@ -727,8 +727,7 @@ void XSecController::exportSignature( if (!signatureInfo.ouGpgCertificate.isEmpty()) { pAttributeList = new SvXMLAttributeList(); - pAttributeList->AddAttribute("xmlns:loext", - "urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0"); + pAttributeList->AddAttribute("xmlns:loext", NS_LOEXT); /* Write PGPData element */ xDocumentHandler->startElement( "PGPData", |