From 9784934cb9054e7aa7b1574f926a555b107a31c8 Mon Sep 17 00:00:00 2001 From: Gabor Kelemen Date: Sun, 9 Sep 2018 23:32:59 +0200 Subject: tdf#42949 Fix IWYU warnings in include/ucbhelper/* Found with bin/find-unneeded-includes Only removal proposals are dealt with here. Change-Id: I7bfeef47abaf94cfb355db95c0fdb928ce36c0a6 Reviewed-on: https://gerrit.libreoffice.org/60232 Tested-by: Jenkins Reviewed-by: Miklos Vajna --- include/IwyuFilter_include.yaml | 12 ++++++++++++ include/ucbhelper/authenticationfallback.hxx | 1 - include/ucbhelper/cancelcommandexecution.hxx | 3 +-- include/ucbhelper/content.hxx | 11 +++++------ include/ucbhelper/contenthelper.hxx | 5 ++--- include/ucbhelper/contentinfo.hxx | 4 ++-- include/ucbhelper/fd_inputstream.hxx | 1 - include/ucbhelper/getcomponentcontext.hxx | 2 +- include/ucbhelper/interactionrequest.hxx | 3 ++- include/ucbhelper/macros.hxx | 5 ----- include/ucbhelper/propertyvalueset.hxx | 4 ++-- include/ucbhelper/providerhelper.hxx | 4 ++-- include/ucbhelper/proxydecider.hxx | 7 ++----- include/ucbhelper/registerucb.hxx | 8 ++++---- include/ucbhelper/resultset.hxx | 6 +++--- include/ucbhelper/resultsethelper.hxx | 5 ++--- include/ucbhelper/resultsetmetadata.hxx | 8 +++----- include/ucbhelper/simplecertificatevalidationrequest.hxx | 5 +++-- 18 files changed, 46 insertions(+), 48 deletions(-) (limited to 'include') diff --git a/include/IwyuFilter_include.yaml b/include/IwyuFilter_include.yaml index 9717b10d9754..f88b608591a8 100644 --- a/include/IwyuFilter_include.yaml +++ b/include/IwyuFilter_include.yaml @@ -94,3 +94,15 @@ blacklist: include/cppuhelper/interfacecontainer.h: #Needed for implicit destructor - com/sun/star/uno/Sequence.hxx + include/ucbhelper/fd_inputstream.hxx: + # Needed for typedef + - com/sun/star/io/XInputStream.hpp + - com/sun/star/io/XSeekable.hpp + include/ucbhelper/macros.hxx: + # Used in macros defined here + - cppuhelper/typeprovider.hxx + - cppuhelper/supportsservice.hxx + - cppuhelper/factory.hxx + include/ucbhelper/simpleinteractionrequest.hxx: + # Needed for template + - o3tl/typed_flags_set.hxx diff --git a/include/ucbhelper/authenticationfallback.hxx b/include/ucbhelper/authenticationfallback.hxx index 5e7bb4732e2f..10280441a05e 100644 --- a/include/ucbhelper/authenticationfallback.hxx +++ b/include/ucbhelper/authenticationfallback.hxx @@ -13,7 +13,6 @@ #include #include #include -#include namespace ucbhelper { diff --git a/include/ucbhelper/cancelcommandexecution.hxx b/include/ucbhelper/cancelcommandexecution.hxx index eeb8b5ba7c2e..fcc1011502b6 100644 --- a/include/ucbhelper/cancelcommandexecution.hxx +++ b/include/ucbhelper/cancelcommandexecution.hxx @@ -21,14 +21,13 @@ #define INCLUDED_UCBHELPER_CANCELCOMMANDEXECUTION_HXX #include -#include #include -#include #include namespace com { namespace sun { namespace star { namespace uno { class Any; } namespace ucb { class XCommandEnvironment; } + namespace ucb { class XCommandProcessor; } } } } namespace ucbhelper diff --git a/include/ucbhelper/content.hxx b/include/ucbhelper/content.hxx index 363cd45a61f1..6ec7148f1e51 100644 --- a/include/ucbhelper/content.hxx +++ b/include/ucbhelper/content.hxx @@ -20,11 +20,8 @@ #define INCLUDED_UCBHELPER_CONTENT_HXX #include -#include -#include -#include -#include -#include +#include +#include #include namespace com { namespace sun { namespace star { namespace beans { @@ -35,6 +32,7 @@ namespace com { namespace sun { namespace star { namespace io { class XActiveDataSink; class XOutputStream; class XInputStream; + class XStream; } } } } namespace com { namespace sun { namespace star { namespace sdbc { @@ -46,7 +44,6 @@ namespace com { namespace sun { namespace star { namespace ucb { class XCommandEnvironment; class XCommandInfo; class XContent; - class XContentIdentifier; class XDynamicResultSet; class XAnyCompareFactory; struct ContentInfo; @@ -57,6 +54,8 @@ namespace com { namespace sun { namespace star { namespace uno { class XComponentContext; } } } } +namespace com { namespace sun { namespace star { namespace uno { class Any; } } } } + namespace ucbhelper { diff --git a/include/ucbhelper/contenthelper.hxx b/include/ucbhelper/contenthelper.hxx index 7d773b33259f..957ff4353b7e 100644 --- a/include/ucbhelper/contenthelper.hxx +++ b/include/ucbhelper/contenthelper.hxx @@ -27,15 +27,12 @@ #include #include #include -#include #include #include #include -#include #include #include -#include #include #include @@ -51,6 +48,8 @@ namespace com { namespace sun { namespace star { namespace beans { class XPropertySetInfo; } } } } +namespace com { namespace sun { namespace star { namespace uno { class XComponentContext; } } } } + namespace ucbhelper_impl { struct ContentImplHelper_Impl; } namespace ucbhelper diff --git a/include/ucbhelper/contentinfo.hxx b/include/ucbhelper/contentinfo.hxx index b69f75d1e8b5..b6d2bad87e65 100644 --- a/include/ucbhelper/contentinfo.hxx +++ b/include/ucbhelper/contentinfo.hxx @@ -22,13 +22,13 @@ #include #include -#include #include #include #include #include -#include + +namespace com { namespace sun { namespace star { namespace ucb { class XCommandEnvironment; } } } } namespace ucbhelper { diff --git a/include/ucbhelper/fd_inputstream.hxx b/include/ucbhelper/fd_inputstream.hxx index 4b098160721d..8c259cf26be4 100644 --- a/include/ucbhelper/fd_inputstream.hxx +++ b/include/ucbhelper/fd_inputstream.hxx @@ -20,7 +20,6 @@ #ifndef INCLUDED_UCBHELPER_FD_INPUTSTREAM_HXX #define INCLUDED_UCBHELPER_FD_INPUTSTREAM_HXX -#include #include #include #include diff --git a/include/ucbhelper/getcomponentcontext.hxx b/include/ucbhelper/getcomponentcontext.hxx index 7cdffd09bc8b..a37ea97d2c65 100644 --- a/include/ucbhelper/getcomponentcontext.hxx +++ b/include/ucbhelper/getcomponentcontext.hxx @@ -22,7 +22,7 @@ #include -#include +#include #include namespace com { namespace sun { namespace star { diff --git a/include/ucbhelper/interactionrequest.hxx b/include/ucbhelper/interactionrequest.hxx index 1645b81089f0..4ee4e93715f8 100644 --- a/include/ucbhelper/interactionrequest.hxx +++ b/include/ucbhelper/interactionrequest.hxx @@ -29,11 +29,12 @@ #include #include #include -#include #include #include #include +namespace rtl { template class Reference; } + namespace ucbhelper { class InteractionContinuation; diff --git a/include/ucbhelper/macros.hxx b/include/ucbhelper/macros.hxx index 36cf524f1fda..831f856dc876 100644 --- a/include/ucbhelper/macros.hxx +++ b/include/ucbhelper/macros.hxx @@ -21,15 +21,10 @@ #define INCLUDED_UCBHELPER_MACROS_HXX #include -#include #include -#include #include #include -#include - - #define CPPU_TYPE( T ) cppu::UnoType::get() #define CPPU_TYPE_REF( T ) CPPU_TYPE( T ) diff --git a/include/ucbhelper/propertyvalueset.hxx b/include/ucbhelper/propertyvalueset.hxx index dcc48170e8a4..a0ecaf0df86d 100644 --- a/include/ucbhelper/propertyvalueset.hxx +++ b/include/ucbhelper/propertyvalueset.hxx @@ -27,7 +27,6 @@ #include #include -#include #include #include @@ -36,10 +35,11 @@ namespace com { namespace sun { namespace star { namespace script { } } } } namespace com { namespace sun { namespace star { namespace beans { - struct PropertyValue; class XPropertySet; } } } } +namespace com { namespace sun { namespace star { namespace uno { class XComponentContext; } } } } + namespace ucbhelper { class PropertyValues; diff --git a/include/ucbhelper/providerhelper.hxx b/include/ucbhelper/providerhelper.hxx index 8d3508784d10..95a7369bedd1 100644 --- a/include/ucbhelper/providerhelper.hxx +++ b/include/ucbhelper/providerhelper.hxx @@ -24,12 +24,10 @@ #include #include #include -#include #include #include #include -#include #include @@ -38,6 +36,8 @@ namespace com { namespace sun { namespace star { namespace ucb { class XPersistentPropertySet; } } } } +namespace com { namespace sun { namespace star { namespace uno { class XComponentContext; } } } } + namespace ucbhelper_impl { struct ContentProviderImplHelper_Impl; } namespace ucbhelper { diff --git a/include/ucbhelper/proxydecider.hxx b/include/ucbhelper/proxydecider.hxx index 3c873e2fe193..511f04166386 100644 --- a/include/ucbhelper/proxydecider.hxx +++ b/include/ucbhelper/proxydecider.hxx @@ -22,13 +22,10 @@ #include #include -#include -#include #include -namespace com { namespace sun { namespace star { namespace lang { - class XMultiServiceFactory; -} } } } +namespace com { namespace sun { namespace star { namespace uno { class XComponentContext; } } } } +namespace com { namespace sun { namespace star { namespace uno { template class Reference; } } } } namespace ucbhelper { diff --git a/include/ucbhelper/registerucb.hxx b/include/ucbhelper/registerucb.hxx index 7164fa99019c..c05d3729b9cc 100644 --- a/include/ucbhelper/registerucb.hxx +++ b/include/ucbhelper/registerucb.hxx @@ -20,16 +20,16 @@ #ifndef INCLUDED_UCBHELPER_REGISTERUCB_HXX #define INCLUDED_UCBHELPER_REGISTERUCB_HXX -#include -#include -#include +#include #include #include +namespace com { namespace sun { namespace star { namespace uno { template class Reference; } } } } + namespace com { namespace sun { namespace star { - namespace lang { class XMultiServiceFactory; } namespace uno { class XComponentContext; } + namespace ucb { class XContentProviderManager; } } } } diff --git a/include/ucbhelper/resultset.hxx b/include/ucbhelper/resultset.hxx index 906b7c9af103..7dcdce8cb8d4 100644 --- a/include/ucbhelper/resultset.hxx +++ b/include/ucbhelper/resultset.hxx @@ -23,8 +23,6 @@ #include #include #include -#include -#include #include #include #include @@ -35,10 +33,12 @@ #include #include #include -#include #include #include +namespace com { namespace sun { namespace star { namespace uno { class XComponentContext; } } } } +namespace com { namespace sun { namespace star { namespace ucb { class XCommandEnvironment; } } } } + namespace ucbhelper { diff --git a/include/ucbhelper/resultsethelper.hxx b/include/ucbhelper/resultsethelper.hxx index 7f6b48487006..7c9452b8407b 100644 --- a/include/ucbhelper/resultsethelper.hxx +++ b/include/ucbhelper/resultsethelper.hxx @@ -25,13 +25,12 @@ #include #include #include -#include #include #include -#include -#include #include +namespace com { namespace sun { namespace star { namespace uno { class XComponentContext; } } } } + namespace cppu { class OInterfaceContainerHelper; } diff --git a/include/ucbhelper/resultsetmetadata.hxx b/include/ucbhelper/resultsetmetadata.hxx index b30fd3735587..2e410a88a83a 100644 --- a/include/ucbhelper/resultsetmetadata.hxx +++ b/include/ucbhelper/resultsetmetadata.hxx @@ -22,18 +22,16 @@ #include #include -#include -#include +#include +#include #include -#include #include #include -#include #include namespace com { namespace sun { namespace star { - namespace lang { class XMultiServiceFactory; } namespace beans { struct Property; } + namespace uno { class XComponentContext; } } } } namespace ucbhelper_impl { diff --git a/include/ucbhelper/simplecertificatevalidationrequest.hxx b/include/ucbhelper/simplecertificatevalidationrequest.hxx index d1d2d4573e82..748a01edffce 100644 --- a/include/ucbhelper/simplecertificatevalidationrequest.hxx +++ b/include/ucbhelper/simplecertificatevalidationrequest.hxx @@ -20,10 +20,11 @@ #ifndef INCLUDED_UCBHELPER_SIMPLECERTIFICATEVALIDATIONREQUEST_HXX #define INCLUDED_UCBHELPER_SIMPLECERTIFICATEVALIDATIONREQUEST_HXX -#include #include #include -#include + +namespace com { namespace sun { namespace star { namespace uno { template class Reference; } } } } +namespace com { namespace sun { namespace star { namespace security { class XCertificate; } } } } namespace ucbhelper { -- cgit