From 2c05d758b2b62c9df413e2514fb3cd233d0f3ec7 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 29 Sep 2017 16:21:54 +0200 Subject: add << operator for css::uno::Exception Change-Id: Ia23dafd07133779144965682df3b7125a3214235 Reviewed-on: https://gerrit.libreoffice.org/43046 Reviewed-by: Stephan Bergmann Tested-by: Jenkins --- xmlsecurity/source/helper/documentsignaturehelper.cxx | 2 +- xmlsecurity/source/helper/pdfsignaturehelper.cxx | 2 +- xmlsecurity/source/helper/xmlsignaturehelper.cxx | 2 +- xmlsecurity/source/xmlsec/nss/nssinitializer.cxx | 4 +--- 4 files changed, 4 insertions(+), 6 deletions(-) (limited to 'xmlsecurity/source') diff --git a/xmlsecurity/source/helper/documentsignaturehelper.cxx b/xmlsecurity/source/helper/documentsignaturehelper.cxx index a9515c18a9e5..43bc7eb5eadb 100644 --- a/xmlsecurity/source/helper/documentsignaturehelper.cxx +++ b/xmlsecurity/source/helper/documentsignaturehelper.cxx @@ -392,7 +392,7 @@ SignatureStreamHelper DocumentSignatureHelper::OpenSignatureStream( } catch (const io::IOException& rException) { - SAL_WARN_IF(nOpenMode != css::embed::ElementModes::READ, "xmlsecurity.helper", "DocumentSignatureHelper::OpenSignatureStream: " << rException.Message); + SAL_WARN_IF(nOpenMode != css::embed::ElementModes::READ, "xmlsecurity.helper", "DocumentSignatureHelper::OpenSignatureStream: " << rException); } } diff --git a/xmlsecurity/source/helper/pdfsignaturehelper.cxx b/xmlsecurity/source/helper/pdfsignaturehelper.cxx index 19efd7ae8195..5356705f7b17 100644 --- a/xmlsecurity/source/helper/pdfsignaturehelper.cxx +++ b/xmlsecurity/source/helper/pdfsignaturehelper.cxx @@ -89,7 +89,7 @@ uno::Sequence PDFSignatureHelper::GetDoc } catch (const uno::SecurityException& rException) { - SAL_WARN("xmlsecurity.helper", "failed to verify certificate: " << rException.Message); + SAL_WARN("xmlsecurity.helper", "failed to verify certificate: " << rException); rExternal.CertificateStatus = security::CertificateValidity::INVALID; } } diff --git a/xmlsecurity/source/helper/xmlsignaturehelper.cxx b/xmlsecurity/source/helper/xmlsignaturehelper.cxx index db29cd9a4bcd..c6cf9fbf9e4c 100644 --- a/xmlsecurity/source/helper/xmlsignaturehelper.cxx +++ b/xmlsecurity/source/helper/xmlsignaturehelper.cxx @@ -398,7 +398,7 @@ bool XMLSignatureHelper::ReadAndVerifySignatureStorageStream(const css::uno::Ref } catch(const uno::Exception& rException) { - SAL_WARN("xmlsecurity.helper", "XMLSignatureHelper::ReadAndVerifySignatureStorageStream: " << rException.Message); + SAL_WARN("xmlsecurity.helper", "XMLSignatureHelper::ReadAndVerifySignatureStorageStream: " << rException); } mpXSecController->releaseSignatureReader(); diff --git a/xmlsecurity/source/xmlsec/nss/nssinitializer.cxx b/xmlsecurity/source/xmlsec/nss/nssinitializer.cxx index dd6336578ea4..14722cb8b474 100644 --- a/xmlsecurity/source/xmlsec/nss/nssinitializer.cxx +++ b/xmlsecurity/source/xmlsec/nss/nssinitializer.cxx @@ -176,9 +176,7 @@ OString getMozillaCurrentProfile( const css::uno::Reference< css::uno::XComponen } catch (const uno::Exception &e) { - SAL_WARN( - "xmlsecurity.xmlsec", - "getMozillaCurrentProfile: caught exception " << e.Message); + SAL_WARN("xmlsecurity.xmlsec", "getMozillaCurrentProfile: caught " << e); } // third, dig around to see if there's one available -- cgit v1.2.3