[Libreoffice-commits] core.git: xmlsecurity/source

Tor Lillqvist tml at collabora.com
Fri Oct 28 05:40:30 UTC 2016


 xmlsecurity/source/helper/xmlsignaturehelper.cxx |    5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

New commits:
commit e333d386ce68ced452bda2ffadac900ba8259861
Author: Tor Lillqvist <tml at collabora.com>
Date:   Fri Oct 28 08:40:01 2016 +0300

    Bin one more pointless TAG_ macro
    
    Change-Id: I78e85923e2c5da366c0bec0812c8fe0240310b67

diff --git a/xmlsecurity/source/helper/xmlsignaturehelper.cxx b/xmlsecurity/source/helper/xmlsignaturehelper.cxx
index 2a43bb1..a944f6f 100644
--- a/xmlsecurity/source/helper/xmlsignaturehelper.cxx
+++ b/xmlsecurity/source/helper/xmlsignaturehelper.cxx
@@ -51,7 +51,6 @@
 #include <comphelper/ofopxmlhelper.hxx>
 #include <comphelper/sequence.hxx>
 
-#define TAG_DOCUMENTSIGNATURES  "document-signatures"
 #define NS_DOCUMENTSIGNATURES   "http://openoffice.org/2004/documentsignatures"
 #define NS_DOCUMENTSIGNATURES_ODF_1_2 "urn:oasis:names:tc:opendocument:xmlns:digitalsignature:1.0"
 #define OOXML_SIGNATURE_ORIGIN "http://schemas.openxmlformats.org/package/2006/relationships/digital-signature/origin"
@@ -182,7 +181,7 @@ uno::Reference<xml::sax::XWriter> XMLSignatureHelper::CreateDocumentHandlerWithH
 
     xSaxWriter->startDocument();
     xSaxWriter->startElement(
-        TAG_DOCUMENTSIGNATURES,
+        "document-signatures",
         uno::Reference< css::xml::sax::XAttributeList > (pAttributeList));
 
     return xSaxWriter;
@@ -190,7 +189,7 @@ uno::Reference<xml::sax::XWriter> XMLSignatureHelper::CreateDocumentHandlerWithH
 
 void XMLSignatureHelper::CloseDocumentHandler( const uno::Reference<xml::sax::XDocumentHandler>& xDocumentHandler )
 {
-    xDocumentHandler->endElement( TAG_DOCUMENTSIGNATURES );
+    xDocumentHandler->endElement( "document-signatures" );
     xDocumentHandler->endDocument();
 }
 


More information about the Libreoffice-commits mailing list