From 64faea31f7d05e46fe5c91f87381ec7abae90174 Mon Sep 17 00:00:00 2001 From: Gabor Kelemen Date: Fri, 3 May 2019 21:19:07 +0200 Subject: tdf#42949 Fix IWYU warnings in xmlsecurity/*cxx Found with bin/find-unneeded-includes Only removal proposals are dealt with here. Change-Id: I89c77656ea4021cb16bd122cb1dd1cd803390c3d Reviewed-on: https://gerrit.libreoffice.org/71765 Tested-by: Jenkins Reviewed-by: Miklos Vajna --- xmlsecurity/IwyuFilter_xmlsecurity.yaml | 17 +++++++++++++++++ xmlsecurity/inc/certificateviewer.hxx | 1 + xmlsecurity/qa/unit/signing/signing.cxx | 1 - xmlsecurity/qa/unit/xmlsecurity-dialogs-test.cxx | 3 --- xmlsecurity/source/component/certificatecontainer.cxx | 3 ++- xmlsecurity/source/dialogs/certificatechooser.cxx | 1 - xmlsecurity/source/dialogs/macrosecurity.cxx | 5 ----- xmlsecurity/source/framework/elementcollector.cxx | 1 - xmlsecurity/source/framework/elementmark.cxx | 1 - xmlsecurity/source/framework/saxeventkeeperimpl.cxx | 1 - xmlsecurity/source/framework/securityengine.cxx | 1 - xmlsecurity/source/framework/signaturecreatorimpl.cxx | 4 ++-- xmlsecurity/source/framework/signatureengine.cxx | 4 ++-- xmlsecurity/source/framework/signatureverifierimpl.cxx | 2 -- .../source/framework/xmlsignaturetemplateimpl.cxx | 1 - xmlsecurity/source/gpg/CertificateImpl.cxx | 1 - xmlsecurity/source/gpg/GpgComponentFactory.cxx | 3 --- xmlsecurity/source/gpg/SEInitializer.cxx | 9 +++------ xmlsecurity/source/gpg/SecurityEnvironment.cxx | 3 --- xmlsecurity/source/gpg/XMLSecurityContext.cxx | 4 ---- xmlsecurity/source/gpg/xmlsignature_gpgimpl.cxx | 4 ---- xmlsecurity/source/helper/documentsignaturehelper.cxx | 3 --- xmlsecurity/source/helper/pdfsignaturehelper.cxx | 1 - xmlsecurity/source/helper/xmlsignaturehelper.cxx | 4 ---- xmlsecurity/source/helper/xmlsignaturehelper2.cxx | 3 --- xmlsecurity/source/helper/xsecctl.cxx | 10 +--------- xmlsecurity/source/helper/xsecparser.cxx | 2 -- xmlsecurity/source/helper/xsecsign.cxx | 9 ++------- xmlsecurity/source/helper/xsecverify.cxx | 5 ++--- xmlsecurity/source/xmlsec/nss/digestcontext.hxx | 1 + xmlsecurity/source/xmlsec/nss/nssinitializer.cxx | 9 +++------ xmlsecurity/source/xmlsec/nss/sanextension_nssimpl.cxx | 3 --- xmlsecurity/source/xmlsec/nss/secerror.cxx | 4 ---- .../source/xmlsec/nss/securityenvironment_nssimpl.cxx | 1 - xmlsecurity/source/xmlsec/nss/seinitializer_nssimpl.cxx | 10 ---------- .../source/xmlsec/nss/x509certificate_nssimpl.cxx | 4 +--- .../source/xmlsec/nss/xmlsecuritycontext_nssimpl.cxx | 7 ++++--- xmlsecurity/source/xmlsec/nss/xmlsignature_nssimpl.cxx | 6 ++---- .../source/xmlsec/xmldocumentwrapper_xmlsecimpl.cxx | 8 -------- .../source/xmlsec/xmlelementwrapper_xmlsecimpl.cxx | 3 ++- xmlsecurity/source/xmlsec/xmlsec_init.cxx | 1 - xmlsecurity/source/xmlsec/xmlstreamio.cxx | 1 - 42 files changed, 45 insertions(+), 120 deletions(-) diff --git a/xmlsecurity/IwyuFilter_xmlsecurity.yaml b/xmlsecurity/IwyuFilter_xmlsecurity.yaml index acb667bdee6f..21c6b38e54e1 100644 --- a/xmlsecurity/IwyuFilter_xmlsecurity.yaml +++ b/xmlsecurity/IwyuFilter_xmlsecurity.yaml @@ -68,6 +68,9 @@ blacklist: - com/sun/star/security/XCertificate.hpp - com/sun/star/lang/XUnoTunnel.hpp - com/sun/star/lang/XServiceInfo.hpp + xmlsecurity/source/gpg/GpgComponentFactory.cxx: + # Silence warning due to incorrect include path + - com/sun/star/lang/XSingleServiceFactory.hpp xmlsecurity/source/gpg/SecurityEnvironment.hxx: # Base class needs complete type - com/sun/star/xml/crypto/XSecurityEnvironment.hpp @@ -95,6 +98,12 @@ blacklist: - com/sun/star/lang/XServiceInfo.hpp - com/sun/star/lang/XUnoTunnel.hpp - com/sun/star/xml/wrapper/XXMLElementWrapper.hpp + xmlsecurity/source/xmlsec/errorcallback.cxx: + # Needed for xmlsec/errors.h + - xmlsec-wrapper.h + xmlsecurity/source/xmlsec/xmlstreamio.cxx: + # comphelper::ScopeGuard is in use but not noticed by IWYU + - comphelper/scopeguard.hxx xmlsecurity/source/xmlsec/nss/sanextension_nssimpl.hxx: # Base class needs complete type - com/sun/star/security/XSanExtension.hpp @@ -113,3 +122,11 @@ blacklist: - com/sun/star/xml/crypto/XCertificateCreator.hpp - com/sun/star/lang/XServiceInfo.hpp - com/sun/star/lang/XUnoTunnel.hpp + xmlsecurity/source/xmlsec/nss/secerror.cxx: + # Used as array initializer + - certerrors.h + # Needed for macros used by certerrors.h + - nss.h + xmlsecurity/qa/unit/signing/signing.cxx: + # Don't replace URE header with impl. detail + - osl/thread.hxx diff --git a/xmlsecurity/inc/certificateviewer.hxx b/xmlsecurity/inc/certificateviewer.hxx index c3236bd857ff..b787ad4b08b2 100644 --- a/xmlsecurity/inc/certificateviewer.hxx +++ b/xmlsecurity/inc/certificateviewer.hxx @@ -34,6 +34,7 @@ namespace xml { namespace crypto { class CertificateViewerGeneralTP; class CertificateViewerDetailsTP; class CertificateViewerCertPathTP; +class CertificateChooser; class CertificateViewer : public weld::GenericDialogController { diff --git a/xmlsecurity/qa/unit/signing/signing.cxx b/xmlsecurity/qa/unit/signing/signing.cxx index 6e907d428679..f16398aabed0 100644 --- a/xmlsecurity/qa/unit/signing/signing.cxx +++ b/xmlsecurity/qa/unit/signing/signing.cxx @@ -13,7 +13,6 @@ #include #include -#include #include #include diff --git a/xmlsecurity/qa/unit/xmlsecurity-dialogs-test.cxx b/xmlsecurity/qa/unit/xmlsecurity-dialogs-test.cxx index db576ef2fd1d..f7f47c8daaf6 100644 --- a/xmlsecurity/qa/unit/xmlsecurity-dialogs-test.cxx +++ b/xmlsecurity/qa/unit/xmlsecurity-dialogs-test.cxx @@ -9,9 +9,6 @@ #include #include -#include -#include -#include #include using namespace ::com::sun::star; diff --git a/xmlsecurity/source/component/certificatecontainer.cxx b/xmlsecurity/source/component/certificatecontainer.cxx index 845e980baeca..e8482d328511 100644 --- a/xmlsecurity/source/component/certificatecontainer.cxx +++ b/xmlsecurity/source/component/certificatecontainer.cxx @@ -22,13 +22,14 @@ #include #include #include -#include #include #include #include +namespace com::sun::star::uno { class XComponentContext; } + using namespace ::com::sun::star; using namespace ::com::sun::star::lang; using namespace ::com::sun::star::uno; diff --git a/xmlsecurity/source/dialogs/certificatechooser.cxx b/xmlsecurity/source/dialogs/certificatechooser.cxx index deaead487768..bb6905acedb8 100644 --- a/xmlsecurity/source/dialogs/certificatechooser.cxx +++ b/xmlsecurity/source/dialogs/certificatechooser.cxx @@ -20,7 +20,6 @@ #include #include #include -#include #include #include #include diff --git a/xmlsecurity/source/dialogs/macrosecurity.cxx b/xmlsecurity/source/dialogs/macrosecurity.cxx index 70a9b32d88a8..59e62442909f 100644 --- a/xmlsecurity/source/dialogs/macrosecurity.cxx +++ b/xmlsecurity/source/dialogs/macrosecurity.cxx @@ -19,7 +19,6 @@ #include -#include #include #include @@ -28,11 +27,9 @@ #include #include -#include #include #include #include -#include #include #include #include @@ -41,8 +38,6 @@ #include -#include - using namespace comphelper; using namespace ::com::sun::star; diff --git a/xmlsecurity/source/framework/elementcollector.cxx b/xmlsecurity/source/framework/elementcollector.cxx index 48399fc8cc77..18e0646ed75e 100644 --- a/xmlsecurity/source/framework/elementcollector.cxx +++ b/xmlsecurity/source/framework/elementcollector.cxx @@ -20,7 +20,6 @@ #include "elementmark.hxx" #include "elementcollector.hxx" -#include "buffernode.hxx" #include #include diff --git a/xmlsecurity/source/framework/elementmark.cxx b/xmlsecurity/source/framework/elementmark.cxx index 2ce86f8a1b60..06fe9dd5ec6d 100644 --- a/xmlsecurity/source/framework/elementmark.cxx +++ b/xmlsecurity/source/framework/elementmark.cxx @@ -19,7 +19,6 @@ #include "elementmark.hxx" -#include "buffernode.hxx" namespace cssxc = com::sun::star::xml::crypto; diff --git a/xmlsecurity/source/framework/saxeventkeeperimpl.cxx b/xmlsecurity/source/framework/saxeventkeeperimpl.cxx index 03fe79ce88fc..775e2e0a40db 100644 --- a/xmlsecurity/source/framework/saxeventkeeperimpl.cxx +++ b/xmlsecurity/source/framework/saxeventkeeperimpl.cxx @@ -22,7 +22,6 @@ #include "buffernode.hxx" #include "elementmark.hxx" #include "elementcollector.hxx" -#include #include #include #include diff --git a/xmlsecurity/source/framework/securityengine.cxx b/xmlsecurity/source/framework/securityengine.cxx index 3088d5a80b4b..e276163d41a8 100644 --- a/xmlsecurity/source/framework/securityengine.cxx +++ b/xmlsecurity/source/framework/securityengine.cxx @@ -19,7 +19,6 @@ #include -#include SecurityEngine::SecurityEngine() diff --git a/xmlsecurity/source/framework/signaturecreatorimpl.cxx b/xmlsecurity/source/framework/signaturecreatorimpl.cxx index 2d828e47fe25..95e17b646cb0 100644 --- a/xmlsecurity/source/framework/signaturecreatorimpl.cxx +++ b/xmlsecurity/source/framework/signaturecreatorimpl.cxx @@ -21,12 +21,12 @@ #include #include #include -#include -#include #include #include #include +namespace com::sun::star::xml::wrapper { class XXMLElementWrapper; } + using namespace com::sun::star::uno; namespace cssu = com::sun::star::uno; namespace cssl = com::sun::star::lang; diff --git a/xmlsecurity/source/framework/signatureengine.cxx b/xmlsecurity/source/framework/signatureengine.cxx index b5a872deb168..3e74a7b25452 100644 --- a/xmlsecurity/source/framework/signatureengine.cxx +++ b/xmlsecurity/source/framework/signatureengine.cxx @@ -20,10 +20,10 @@ #include #include -#include -#include #include +namespace com::sun::star::xml::wrapper { class XXMLElementWrapper; } + using namespace com::sun::star::uno; namespace cssu = com::sun::star::uno; namespace cssxc = com::sun::star::xml::crypto; diff --git a/xmlsecurity/source/framework/signatureverifierimpl.cxx b/xmlsecurity/source/framework/signatureverifierimpl.cxx index a5bd86192305..bafaaf8df5b3 100644 --- a/xmlsecurity/source/framework/signatureverifierimpl.cxx +++ b/xmlsecurity/source/framework/signatureverifierimpl.cxx @@ -21,8 +21,6 @@ #include #include #include -#include -#include #include #include #include diff --git a/xmlsecurity/source/framework/xmlsignaturetemplateimpl.cxx b/xmlsecurity/source/framework/xmlsignaturetemplateimpl.cxx index 308ff78a6f22..c83c7751e794 100644 --- a/xmlsecurity/source/framework/xmlsignaturetemplateimpl.cxx +++ b/xmlsecurity/source/framework/xmlsignaturetemplateimpl.cxx @@ -19,7 +19,6 @@ #include #include -#include #include using namespace ::com::sun::star::uno ; diff --git a/xmlsecurity/source/gpg/CertificateImpl.cxx b/xmlsecurity/source/gpg/CertificateImpl.cxx index 64c7b4886e50..3e0ba3fe0e25 100644 --- a/xmlsecurity/source/gpg/CertificateImpl.cxx +++ b/xmlsecurity/source/gpg/CertificateImpl.cxx @@ -19,7 +19,6 @@ #include #include -#include #include #include diff --git a/xmlsecurity/source/gpg/GpgComponentFactory.cxx b/xmlsecurity/source/gpg/GpgComponentFactory.cxx index 4bb0b90ad211..fecf2ce3c852 100644 --- a/xmlsecurity/source/gpg/GpgComponentFactory.cxx +++ b/xmlsecurity/source/gpg/GpgComponentFactory.cxx @@ -9,8 +9,6 @@ #include -#include -#include #include #include "xmlsignature_gpgimpl.hxx" @@ -18,7 +16,6 @@ using namespace ::cppu; using namespace ::com::sun::star::uno; using namespace ::com::sun::star::lang; -using namespace ::com::sun::star::registry; extern "C" { diff --git a/xmlsecurity/source/gpg/SEInitializer.cxx b/xmlsecurity/source/gpg/SEInitializer.cxx index 02104cf4e4c1..f11ad59d8ba1 100644 --- a/xmlsecurity/source/gpg/SEInitializer.cxx +++ b/xmlsecurity/source/gpg/SEInitializer.cxx @@ -7,17 +7,14 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#include - -#include - #include #include #include "SecurityEnvironment.hxx" #include "XMLSecurityContext.hxx" -#include -#include +#include + +namespace com::sun::star::uno { class XComponentContext; } using namespace css; using namespace css::lang; diff --git a/xmlsecurity/source/gpg/SecurityEnvironment.cxx b/xmlsecurity/source/gpg/SecurityEnvironment.cxx index 99d256ea4c99..42fa728d83f4 100644 --- a/xmlsecurity/source/gpg/SecurityEnvironment.cxx +++ b/xmlsecurity/source/gpg/SecurityEnvironment.cxx @@ -7,15 +7,12 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#include - #include "SecurityEnvironment.hxx" #include "CertificateImpl.hxx" #include #include -#include #include #include diff --git a/xmlsecurity/source/gpg/XMLSecurityContext.cxx b/xmlsecurity/source/gpg/XMLSecurityContext.cxx index 494b934f520b..460ed94dbfc7 100644 --- a/xmlsecurity/source/gpg/XMLSecurityContext.cxx +++ b/xmlsecurity/source/gpg/XMLSecurityContext.cxx @@ -8,13 +8,9 @@ */ #include "XMLSecurityContext.hxx" -#include "SecurityEnvironment.hxx" #include -#include -#include - using namespace css::uno; using namespace css::lang; using namespace css::xml::crypto; diff --git a/xmlsecurity/source/gpg/xmlsignature_gpgimpl.cxx b/xmlsecurity/source/gpg/xmlsignature_gpgimpl.cxx index 8b4a5f218880..f836eca9cf02 100644 --- a/xmlsecurity/source/gpg/xmlsignature_gpgimpl.cxx +++ b/xmlsecurity/source/gpg/xmlsignature_gpgimpl.cxx @@ -17,11 +17,8 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#include - #include #include -#include #include #include @@ -39,7 +36,6 @@ #include #include -#include #include #include #include diff --git a/xmlsecurity/source/helper/documentsignaturehelper.cxx b/xmlsecurity/source/helper/documentsignaturehelper.cxx index abbfd617c9f3..f1929f927758 100644 --- a/xmlsecurity/source/helper/documentsignaturehelper.cxx +++ b/xmlsecurity/source/helper/documentsignaturehelper.cxx @@ -25,12 +25,9 @@ #include #include -#include -#include #include #include #include -#include #include #include diff --git a/xmlsecurity/source/helper/pdfsignaturehelper.cxx b/xmlsecurity/source/helper/pdfsignaturehelper.cxx index 1f11b7856f4a..809e089b0f4f 100644 --- a/xmlsecurity/source/helper/pdfsignaturehelper.cxx +++ b/xmlsecurity/source/helper/pdfsignaturehelper.cxx @@ -18,7 +18,6 @@ #include #include -#include #include #include diff --git a/xmlsecurity/source/helper/xmlsignaturehelper.cxx b/xmlsecurity/source/helper/xmlsignaturehelper.cxx index 1754d25b8167..0bc850b9af4f 100644 --- a/xmlsecurity/source/helper/xmlsignaturehelper.cxx +++ b/xmlsecurity/source/helper/xmlsignaturehelper.cxx @@ -24,16 +24,13 @@ #include -#include #include #include #include #include -#include #include -#include #include #include #include @@ -42,7 +39,6 @@ #include #include #include -#include #include #include diff --git a/xmlsecurity/source/helper/xmlsignaturehelper2.cxx b/xmlsecurity/source/helper/xmlsignaturehelper2.cxx index bb281b10be88..3e5d01b44861 100644 --- a/xmlsecurity/source/helper/xmlsignaturehelper2.cxx +++ b/xmlsecurity/source/helper/xmlsignaturehelper2.cxx @@ -17,16 +17,13 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#include #include #include #include #include -#include #include -#include #include #include #include diff --git a/xmlsecurity/source/helper/xsecctl.cxx b/xmlsecurity/source/helper/xsecctl.cxx index 4a0778ca6329..6431d27e9c3c 100644 --- a/xmlsecurity/source/helper/xsecctl.cxx +++ b/xmlsecurity/source/helper/xsecctl.cxx @@ -27,27 +27,19 @@ # include #endif -#include -#include #include -#include -#include #include #ifdef ANDROID #include #endif -#include -#include -#include #include #include #include -#include +#include #include #include #include -#include #include "ooxmlsecexporter.hxx" #include diff --git a/xmlsecurity/source/helper/xsecparser.cxx b/xmlsecurity/source/helper/xsecparser.cxx index f87aec62f21d..10b2a95cba99 100644 --- a/xmlsecurity/source/helper/xsecparser.cxx +++ b/xmlsecurity/source/helper/xsecparser.cxx @@ -25,8 +25,6 @@ #include #include -#include - namespace cssu = com::sun::star::uno; namespace cssxc = com::sun::star::xml::crypto; namespace cssxs = com::sun::star::xml::sax; diff --git a/xmlsecurity/source/helper/xsecsign.cxx b/xmlsecurity/source/helper/xsecsign.cxx index d8089b1773b3..4d1b89949feb 100644 --- a/xmlsecurity/source/helper/xsecsign.cxx +++ b/xmlsecurity/source/helper/xsecsign.cxx @@ -19,15 +19,8 @@ #include -#include -#include #include -#include -#include -#include -#include -#include #include #include #include @@ -35,6 +28,8 @@ #include #include +namespace com::sun::star::graphic { class XGraphic; } + using namespace css; using namespace css::uno; using namespace css::graphic; diff --git a/xmlsecurity/source/helper/xsecverify.cxx b/xmlsecurity/source/helper/xsecverify.cxx index a3c8cd9776c5..1f7fa9ac8ca8 100644 --- a/xmlsecurity/source/helper/xsecverify.cxx +++ b/xmlsecurity/source/helper/xsecverify.cxx @@ -30,13 +30,10 @@ #include #include #include -#include #include #include #include -#include #include -#include #include #include #include @@ -44,6 +41,8 @@ #include #include +namespace com::sun::star::graphic { class XGraphic; } + using namespace css; using namespace css::uno; using namespace css::beans; diff --git a/xmlsecurity/source/xmlsec/nss/digestcontext.hxx b/xmlsecurity/source/xmlsec/nss/digestcontext.hxx index a8aafdefeec3..2f41862a815d 100644 --- a/xmlsecurity/source/xmlsec/nss/digestcontext.hxx +++ b/xmlsecurity/source/xmlsec/nss/digestcontext.hxx @@ -24,6 +24,7 @@ #include #include +#include class ODigestContext : public cppu::WeakImplHelper< css::xml::crypto::XDigestContext > { diff --git a/xmlsecurity/source/xmlsec/nss/nssinitializer.cxx b/xmlsecurity/source/xmlsec/nss/nssinitializer.cxx index 688a94d31a5e..d77e2d4a4fcb 100644 --- a/xmlsecurity/source/xmlsec/nss/nssinitializer.cxx +++ b/xmlsecurity/source/xmlsec/nss/nssinitializer.cxx @@ -28,28 +28,25 @@ #include #include #include -#include #include #include #include #include #include -#include "seinitializer_nssimpl.hxx" +#include -#include "securityenvironment_nssimpl.hxx" #include "digestcontext.hxx" #include "ciphercontext.hxx" #include #include -#include -#include #include #include #include -#include +#include +#include namespace cssu = css::uno; namespace cssl = css::lang; diff --git a/xmlsecurity/source/xmlsec/nss/sanextension_nssimpl.cxx b/xmlsecurity/source/xmlsec/nss/sanextension_nssimpl.cxx index 4b14a35e0251..37602b6e03ce 100644 --- a/xmlsecurity/source/xmlsec/nss/sanextension_nssimpl.cxx +++ b/xmlsecurity/source/xmlsec/nss/sanextension_nssimpl.cxx @@ -18,7 +18,6 @@ */ #include -#include #include #include #include @@ -27,8 +26,6 @@ #include #include #include -#include -#include #include "sanextension_nssimpl.hxx" diff --git a/xmlsecurity/source/xmlsec/nss/secerror.cxx b/xmlsecurity/source/xmlsec/nss/secerror.cxx index 717dd32a535a..2b3438a356f6 100644 --- a/xmlsecurity/source/xmlsec/nss/secerror.cxx +++ b/xmlsecurity/source/xmlsec/nss/secerror.cxx @@ -20,13 +20,9 @@ #include #include "secerror.hxx" -#include -#include #include #include #include -#include -#include struct ErrDesc { PRErrorCode const errNum; diff --git a/xmlsecurity/source/xmlsec/nss/securityenvironment_nssimpl.cxx b/xmlsecurity/source/xmlsec/nss/securityenvironment_nssimpl.cxx index 03ad4c11487e..d67bf2e517e4 100644 --- a/xmlsecurity/source/xmlsec/nss/securityenvironment_nssimpl.cxx +++ b/xmlsecurity/source/xmlsec/nss/securityenvironment_nssimpl.cxx @@ -33,7 +33,6 @@ #include #include #include -#include #include #include #include diff --git a/xmlsecurity/source/xmlsec/nss/seinitializer_nssimpl.cxx b/xmlsecurity/source/xmlsec/nss/seinitializer_nssimpl.cxx index 4143a320dae5..7795d76a1ed2 100644 --- a/xmlsecurity/source/xmlsec/nss/seinitializer_nssimpl.cxx +++ b/xmlsecurity/source/xmlsec/nss/seinitializer_nssimpl.cxx @@ -18,11 +18,6 @@ */ #include -#include -#include -#include -#include -#include #include #include #include @@ -30,12 +25,7 @@ #include "seinitializer_nssimpl.hxx" #include "securityenvironment_nssimpl.hxx" -#include #include -#include -#include -#include -#include namespace cssxc = css::xml::crypto; diff --git a/xmlsecurity/source/xmlsec/nss/x509certificate_nssimpl.cxx b/xmlsecurity/source/xmlsec/nss/x509certificate_nssimpl.cxx index 6154f6548545..fb68b0cac410 100644 --- a/xmlsecurity/source/xmlsec/nss/x509certificate_nssimpl.cxx +++ b/xmlsecurity/source/xmlsec/nss/x509certificate_nssimpl.cxx @@ -18,14 +18,12 @@ */ #include "nssrenam.h" -#include -#include #include #include #include #include -#include +#include #include #include diff --git a/xmlsecurity/source/xmlsec/nss/xmlsecuritycontext_nssimpl.cxx b/xmlsecurity/source/xmlsec/nss/xmlsecuritycontext_nssimpl.cxx index ce01a0a40407..1ed575e92300 100644 --- a/xmlsecurity/source/xmlsec/nss/xmlsecuritycontext_nssimpl.cxx +++ b/xmlsecurity/source/xmlsec/nss/xmlsecuritycontext_nssimpl.cxx @@ -19,11 +19,12 @@ #include #include -#include +#include #include -#include "securityenvironment_nssimpl.hxx" +#include #include -#include + +namespace com::sun::star::uno { class XComponentContext; } using namespace ::com::sun::star; using namespace ::com::sun::star::lang ; diff --git a/xmlsecurity/source/xmlsec/nss/xmlsignature_nssimpl.cxx b/xmlsecurity/source/xmlsec/nss/xmlsignature_nssimpl.cxx index 1f5256d22383..7ad39d3a765a 100644 --- a/xmlsecurity/source/xmlsec/nss/xmlsignature_nssimpl.cxx +++ b/xmlsecurity/source/xmlsec/nss/xmlsignature_nssimpl.cxx @@ -18,9 +18,7 @@ */ #include -#include -#include #include #include #include @@ -29,15 +27,15 @@ #include #include -#include #include +namespace com::sun::star::uno { class XComponentContext; } + using namespace ::com::sun::star; using namespace ::com::sun::star::uno ; using namespace ::com::sun::star::lang ; using ::com::sun::star::xml::wrapper::XXMLElementWrapper ; -using ::com::sun::star::xml::wrapper::XXMLDocumentWrapper ; using ::com::sun::star::xml::crypto::XSecurityEnvironment ; using ::com::sun::star::xml::crypto::XXMLSignature ; using ::com::sun::star::xml::crypto::XXMLSignatureTemplate ; diff --git a/xmlsecurity/source/xmlsec/xmldocumentwrapper_xmlsecimpl.cxx b/xmlsecurity/source/xmlsec/xmldocumentwrapper_xmlsecimpl.cxx index ba6f9f807dfe..b8479fc5afae 100644 --- a/xmlsecurity/source/xmlsec/xmldocumentwrapper_xmlsecimpl.cxx +++ b/xmlsecurity/source/xmlsec/xmldocumentwrapper_xmlsecimpl.cxx @@ -28,14 +28,6 @@ #include -#include -#include - -#include -#include - -#include - #ifdef UNX #define stricmp strcasecmp #endif diff --git a/xmlsecurity/source/xmlsec/xmlelementwrapper_xmlsecimpl.cxx b/xmlsecurity/source/xmlsec/xmlelementwrapper_xmlsecimpl.cxx index 4f9e8c8047e6..60b9714256b7 100644 --- a/xmlsecurity/source/xmlsec/xmlelementwrapper_xmlsecimpl.cxx +++ b/xmlsecurity/source/xmlsec/xmlelementwrapper_xmlsecimpl.cxx @@ -20,10 +20,11 @@ #include #include "xmlelementwrapper_xmlsecimpl.hxx" -#include #include #include +namespace com::sun::star::uno { class XComponentContext; } + using namespace com::sun::star; XMLElementWrapper_XmlSecImpl::XMLElementWrapper_XmlSecImpl(const xmlNodePtr pNode) diff --git a/xmlsecurity/source/xmlsec/xmlsec_init.cxx b/xmlsecurity/source/xmlsec/xmlsec_init.cxx index 93dc49e6c126..6dcc45996536 100644 --- a/xmlsecurity/source/xmlsec/xmlsec_init.cxx +++ b/xmlsecurity/source/xmlsec/xmlsec_init.cxx @@ -13,7 +13,6 @@ #include #include -#include #ifdef XMLSEC_CRYPTO_MSCRYPTO #include #else diff --git a/xmlsecurity/source/xmlsec/xmlstreamio.cxx b/xmlsecurity/source/xmlsec/xmlstreamio.cxx index 3c61084ad6ef..0f8918380855 100644 --- a/xmlsecurity/source/xmlsec/xmlstreamio.cxx +++ b/xmlsecurity/source/xmlsec/xmlstreamio.cxx @@ -29,7 +29,6 @@ #include -#include #include static bool g_bInputCallbacksEnabled = false; -- cgit