From 368f20001c0d152f48575335757e3c3c3b7e5750 Mon Sep 17 00:00:00 2001 From: Gabor Kelemen Date: Sat, 13 Apr 2019 21:42:04 +0200 Subject: tdf#42949 Fix IWYU warnings in comphelper MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Found with bin/find-unneeded-includes Only removal proposals are dealt with here. Also re-evaluate some blacklisted headers and recheck include/comphelper/ Change-Id: Ib7eea5951e849c07cea2e2782be4e8945f71ad96 Reviewed-on: https://gerrit.libreoffice.org/70899 Tested-by: Jenkins Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- comphelper/source/misc/accessiblecontexthelper.cxx | 2 -- comphelper/source/misc/accessiblewrapper.cxx | 3 --- comphelper/source/misc/accimplaccess.cxx | 3 --- comphelper/source/misc/base64.cxx | 4 ---- comphelper/source/misc/configuration.cxx | 4 ++-- comphelper/source/misc/docpasswordhelper.cxx | 2 -- comphelper/source/misc/evtmethodhelper.cxx | 2 +- comphelper/source/misc/getexpandeduri.cxx | 4 ++-- comphelper/source/misc/graphicmimetype.cxx | 1 - comphelper/source/misc/hash.cxx | 1 - comphelper/source/misc/instancelocker.cxx | 7 +++++-- comphelper/source/misc/instancelocker.hxx | 7 +++---- comphelper/source/misc/logging.cxx | 2 -- comphelper/source/misc/lok.cxx | 1 - comphelper/source/misc/namedvaluecollection.cxx | 1 - comphelper/source/misc/numbers.cxx | 2 -- comphelper/source/misc/officerestartmanager.hxx | 1 - comphelper/source/misc/servicedecl.cxx | 1 - comphelper/source/misc/storagehelper.cxx | 4 ---- comphelper/source/misc/string.cxx | 1 - comphelper/source/misc/synchronousdispatch.cxx | 1 - comphelper/source/misc/threadpool.cxx | 1 - comphelper/source/misc/types.cxx | 6 ------ comphelper/source/misc/xmlsechelper.cxx | 8 +------- 24 files changed, 14 insertions(+), 55 deletions(-) (limited to 'comphelper/source/misc') diff --git a/comphelper/source/misc/accessiblecontexthelper.cxx b/comphelper/source/misc/accessiblecontexthelper.cxx index df837e2e946b..1b6d7f59f547 100644 --- a/comphelper/source/misc/accessiblecontexthelper.cxx +++ b/comphelper/source/misc/accessiblecontexthelper.cxx @@ -20,8 +20,6 @@ #include #include #include -#include -#include #include #include #include diff --git a/comphelper/source/misc/accessiblewrapper.cxx b/comphelper/source/misc/accessiblewrapper.cxx index 9736b031f618..da86b96bf5d4 100644 --- a/comphelper/source/misc/accessiblewrapper.cxx +++ b/comphelper/source/misc/accessiblewrapper.cxx @@ -18,12 +18,9 @@ */ #include -#include #include #include -#include - using namespace ::comphelper; using namespace ::com::sun::star::accessibility; using namespace ::com::sun::star::uno; diff --git a/comphelper/source/misc/accimplaccess.cxx b/comphelper/source/misc/accimplaccess.cxx index 95a36640d7f8..8d06e1b91c6e 100644 --- a/comphelper/source/misc/accimplaccess.cxx +++ b/comphelper/source/misc/accimplaccess.cxx @@ -18,12 +18,9 @@ */ #include -#include #include -#include #include -#include namespace comphelper diff --git a/comphelper/source/misc/base64.cxx b/comphelper/source/misc/base64.cxx index 8fd02f120f8f..3748f2f1e56b 100644 --- a/comphelper/source/misc/base64.cxx +++ b/comphelper/source/misc/base64.cxx @@ -21,12 +21,8 @@ #include -#include -#include #include -#include - using namespace com::sun::star; namespace comphelper { diff --git a/comphelper/source/misc/configuration.cxx b/comphelper/source/misc/configuration.cxx index 03396f0bac89..89ce0e3be024 100644 --- a/comphelper/source/misc/configuration.cxx +++ b/comphelper/source/misc/configuration.cxx @@ -21,11 +21,9 @@ #include #include #include -#include #include #include #include -#include #include #include #include @@ -35,6 +33,8 @@ #include #include +namespace com::sun::star::uno { class XComponentContext; } + namespace { struct TheConfigurationWrapper: diff --git a/comphelper/source/misc/docpasswordhelper.cxx b/comphelper/source/misc/docpasswordhelper.cxx index a0d2907c4323..9134e7d050a2 100644 --- a/comphelper/source/misc/docpasswordhelper.cxx +++ b/comphelper/source/misc/docpasswordhelper.cxx @@ -29,7 +29,6 @@ #include #include #include -#include #include #include @@ -38,7 +37,6 @@ #include #if HAVE_FEATURE_GPGME -# include # include # include # include diff --git a/comphelper/source/misc/evtmethodhelper.cxx b/comphelper/source/misc/evtmethodhelper.cxx index d02b423bab57..5f60d92d645c 100644 --- a/comphelper/source/misc/evtmethodhelper.cxx +++ b/comphelper/source/misc/evtmethodhelper.cxx @@ -18,7 +18,7 @@ */ #include -#include +#include using ::com::sun::star::uno::Sequence; using ::com::sun::star::uno::Type; diff --git a/comphelper/source/misc/getexpandeduri.cxx b/comphelper/source/misc/getexpandeduri.cxx index 796400f1da9d..853e5dbd3c06 100644 --- a/comphelper/source/misc/getexpandeduri.cxx +++ b/comphelper/source/misc/getexpandeduri.cxx @@ -10,13 +10,13 @@ #include #include -#include #include #include #include #include #include -#include + +namespace com::sun::star::uno { class XComponentContext; } OUString comphelper::getExpandedUri( css::uno::Reference const & context, diff --git a/comphelper/source/misc/graphicmimetype.cxx b/comphelper/source/misc/graphicmimetype.cxx index 8dd188767936..78e216a941ae 100644 --- a/comphelper/source/misc/graphicmimetype.cxx +++ b/comphelper/source/misc/graphicmimetype.cxx @@ -22,7 +22,6 @@ #include #include #include -#include #include #include #include diff --git a/comphelper/source/misc/hash.cxx b/comphelper/source/misc/hash.cxx index b7eab08ce033..3db0b3e56616 100644 --- a/comphelper/source/misc/hash.cxx +++ b/comphelper/source/misc/hash.cxx @@ -15,7 +15,6 @@ #if USE_TLS_NSS #include -#include #include #elif USE_TLS_OPENSSL #include diff --git a/comphelper/source/misc/instancelocker.cxx b/comphelper/source/misc/instancelocker.cxx index cf7a2cfaf218..21b165fe1d8a 100644 --- a/comphelper/source/misc/instancelocker.cxx +++ b/comphelper/source/misc/instancelocker.cxx @@ -19,8 +19,8 @@ #include +#include -#include #include #include #include @@ -29,10 +29,13 @@ #include #include #include -#include +#include +#include #include "instancelocker.hxx" +namespace com::sun::star::uno { class XComponentContext; } + using namespace ::com::sun::star; diff --git a/comphelper/source/misc/instancelocker.hxx b/comphelper/source/misc/instancelocker.hxx index fb6581317006..ff5cee4f4775 100644 --- a/comphelper/source/misc/instancelocker.hxx +++ b/comphelper/source/misc/instancelocker.hxx @@ -20,21 +20,20 @@ #ifndef INCLUDED_COMPHELPER_SOURCE_MISC_INSTANCELOCKER_HXX #define INCLUDED_COMPHELPER_SOURCE_MISC_INSTANCELOCKER_HXX -#include #include #include #include #include #include -#include -#include #include #include #include -#include #include #include +namespace com::sun::star::embed { class XActionsApproval; } +namespace comphelper { class OInterfaceContainerHelper2; } + class OLockListener; diff --git a/comphelper/source/misc/logging.cxx b/comphelper/source/misc/logging.cxx index 5329e8b7200a..dfd52f8d5bcb 100644 --- a/comphelper/source/misc/logging.cxx +++ b/comphelper/source/misc/logging.cxx @@ -21,10 +21,8 @@ #include #include -#include #include -#include namespace comphelper diff --git a/comphelper/source/misc/lok.cxx b/comphelper/source/misc/lok.cxx index 2b47c6aa36d0..0ea263f20885 100644 --- a/comphelper/source/misc/lok.cxx +++ b/comphelper/source/misc/lok.cxx @@ -12,7 +12,6 @@ #include #include -#include namespace comphelper { diff --git a/comphelper/source/misc/namedvaluecollection.cxx b/comphelper/source/misc/namedvaluecollection.cxx index 42ef768d9297..777e75e57a86 100644 --- a/comphelper/source/misc/namedvaluecollection.cxx +++ b/comphelper/source/misc/namedvaluecollection.cxx @@ -24,7 +24,6 @@ #include #include -#include #include #include diff --git a/comphelper/source/misc/numbers.cxx b/comphelper/source/misc/numbers.cxx index 70eb3f4e8df0..f3b609392ceb 100644 --- a/comphelper/source/misc/numbers.cxx +++ b/comphelper/source/misc/numbers.cxx @@ -22,9 +22,7 @@ #include #include #include -#include #include -#include namespace comphelper diff --git a/comphelper/source/misc/officerestartmanager.hxx b/comphelper/source/misc/officerestartmanager.hxx index cfada99c858a..865fc29b23b3 100644 --- a/comphelper/source/misc/officerestartmanager.hxx +++ b/comphelper/source/misc/officerestartmanager.hxx @@ -21,7 +21,6 @@ #define INCLUDED_COMPHELPER_SOURCE_MISC_OFFICERESTARTMANAGER_HXX #include -#include #include #include diff --git a/comphelper/source/misc/servicedecl.cxx b/comphelper/source/misc/servicedecl.cxx index 063587401434..f37f783b902f 100644 --- a/comphelper/source/misc/servicedecl.cxx +++ b/comphelper/source/misc/servicedecl.cxx @@ -20,7 +20,6 @@ #include #include -#include #include #include #include diff --git a/comphelper/source/misc/storagehelper.cxx b/comphelper/source/misc/storagehelper.cxx index 33ae9875da8b..c585e2ba0577 100644 --- a/comphelper/source/misc/storagehelper.cxx +++ b/comphelper/source/misc/storagehelper.cxx @@ -20,7 +20,6 @@ #include #include -#include #include #include #include @@ -36,7 +35,6 @@ #include #include #include -#include #include #include #include @@ -47,7 +45,6 @@ #include #include #include -#include #include @@ -60,7 +57,6 @@ #include #if HAVE_FEATURE_GPGME -# include # include # include # include diff --git a/comphelper/source/misc/string.cxx b/comphelper/source/misc/string.cxx index 0822d39d5d78..98fc3d8585a7 100644 --- a/comphelper/source/misc/string.cxx +++ b/comphelper/source/misc/string.cxx @@ -20,7 +20,6 @@ #include #include -#include #include #include #include diff --git a/comphelper/source/misc/synchronousdispatch.cxx b/comphelper/source/misc/synchronousdispatch.cxx index bec5b021310d..a09f05db8331 100644 --- a/comphelper/source/misc/synchronousdispatch.cxx +++ b/comphelper/source/misc/synchronousdispatch.cxx @@ -21,7 +21,6 @@ #include #include #include -#include #include #include diff --git a/comphelper/source/misc/threadpool.cxx b/comphelper/source/misc/threadpool.cxx index f075c0600968..68ff089d270d 100644 --- a/comphelper/source/misc/threadpool.cxx +++ b/comphelper/source/misc/threadpool.cxx @@ -13,7 +13,6 @@ #include #include #include -#include #include #include #include diff --git a/comphelper/source/misc/types.cxx b/comphelper/source/misc/types.cxx index f5a57410495f..eb5eec0b5343 100644 --- a/comphelper/source/misc/types.cxx +++ b/comphelper/source/misc/types.cxx @@ -19,9 +19,6 @@ #include #include -#include -#include -#include #include #include #include @@ -29,8 +26,6 @@ #include #include -#include - namespace comphelper { @@ -38,7 +33,6 @@ namespace comphelper using namespace ::com::sun::star::uno; using namespace ::com::sun::star::awt; -using namespace ::com::sun::star::util; using namespace ::com::sun::star::lang; sal_Int64 getINT64(const Any& _rAny) diff --git a/comphelper/source/misc/xmlsechelper.cxx b/comphelper/source/misc/xmlsechelper.cxx index 068134bf47fe..9b3b19249803 100644 --- a/comphelper/source/misc/xmlsechelper.cxx +++ b/comphelper/source/misc/xmlsechelper.cxx @@ -20,13 +20,7 @@ #include -#include -#include -#include -#include -#include -#include -#include +#include #include #include -- cgit