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

Samuel Mehrbrodt Samuel.Mehrbrodt at cib.de
Mon Jul 17 18:30:07 UTC 2017


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

New commits:
commit fab7288516d442289a7b6f3a27b9aca8d23f3b5b
Author: Samuel Mehrbrodt <Samuel.Mehrbrodt at cib.de>
Date:   Mon Jul 17 17:58:27 2017 +0200

    This should be a namespace, not an attribute "namespace"
    
    Change-Id: I159db32662679a3194edf942fa6672370e2b8587
    Reviewed-on: https://gerrit.libreoffice.org/40072
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt at cib.de>

diff --git a/xmlsecurity/source/helper/xsecctl.cxx b/xmlsecurity/source/helper/xsecctl.cxx
index 9902dd1ad24a..abe8bd1760e1 100644
--- a/xmlsecurity/source/helper/xsecctl.cxx
+++ b/xmlsecurity/source/helper/xsecctl.cxx
@@ -749,13 +749,11 @@ void XSecController::exportSignature(
                     }
 
                     /* Write PGPOwner element */
-                    pAttributeList = new SvXMLAttributeList();
-                    pAttributeList->AddAttribute("namespace", "loext");
                     xDocumentHandler->startElement(
-                        "PGPOwner",
-                        cssu::Reference< cssxs::XAttributeList >(pAttributeList));
+                        "loext:PGPOwner",
+                        cssu::Reference< cssxs::XAttributeList >(new SvXMLAttributeList()));
                     xDocumentHandler->characters( signatureInfo.ouGpgOwner );
-                    xDocumentHandler->endElement( "PGPOwner" );
+                    xDocumentHandler->endElement( "loext:PGPOwner" );
                 }
                 xDocumentHandler->endElement( "PGPData" );
             }


More information about the Libreoffice-commits mailing list