diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2018-10-18 10:29:45 +0200 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2018-10-29 08:58:54 +0100 |
commit | a113aff7add62da5f2f8ffe0be453af4b1b79866 (patch) | |
tree | 0d8ab286a2432f10a7f2cc2555ac8411e698a324 | |
parent | bdde44d5525caf2240a6ea900336ac973121f145 (diff) |
xmlsignaturehelper: fix comments, no change
Change-Id: Ibfdf92712264ad37aafed53db0fe8e8c4fea4699
Reviewed-on: https://gerrit.libreoffice.org/61913
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
-rw-r--r-- | xmlsecurity/source/helper/xmlsignaturehelper.cxx | 26 |
1 files changed, 7 insertions, 19 deletions
diff --git a/xmlsecurity/source/helper/xmlsignaturehelper.cxx b/xmlsecurity/source/helper/xmlsignaturehelper.cxx index 0e7a77640a68..db80016f84e0 100644 --- a/xmlsecurity/source/helper/xmlsignaturehelper.cxx +++ b/xmlsecurity/source/helper/xmlsignaturehelper.cxx @@ -257,32 +257,22 @@ bool XMLSignatureHelper::ReadAndVerifySignature( const css::uno::Reference< css: SAL_WARN_IF(!xInputStream.is(), "xmlsecurity.helper", "input stream missing"); - /* - * prepare ParserInputSrouce - */ + // prepare ParserInputSrouce xml::sax::InputSource aParserInput; aParserInput.aInputStream = xInputStream; - /* - * get SAX parser component - */ + // get SAX parser component uno::Reference< xml::sax::XParser > xParser = xml::sax::Parser::create(mxCtx); - /* - * create a signature reader - */ + // create a signature reader uno::Reference< xml::sax::XDocumentHandler > xHandler = mpXSecController->createSignatureReader(*this); - /* - * setup the connection: - * Parser -> SignatureReader - */ + // setup the connection: + // Parser -> SignatureReader xParser->setDocumentHandler( xHandler ); - /* - * parser the stream - */ + // parser the stream try { xParser->parseStream( aParserInput ); @@ -292,9 +282,7 @@ bool XMLSignatureHelper::ReadAndVerifySignature( const css::uno::Reference< css: mbError = true; } - /* - * release the signature reader - */ + // release the signature reader mpXSecController->releaseSignatureReader( ); return !mbError; |