diff options
author | Gabor Kelemen <kelemen.gabor2@nisz.hu> | 2020-10-31 14:32:20 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2020-11-06 08:18:45 +0100 |
commit | 7bdbb50a507df4c419f68d2ae453dd482267f168 (patch) | |
tree | c9797c8f343108fedad6f900b1952b69570b517f /comphelper | |
parent | 6e921467c411718793422a43fb3e3060fdeaeda9 (diff) |
tdf#42949 Fix new IWYU warnings in directories c*
Found with bin/find-unneeded-includes
Only removal proposals are dealt with here.
Change-Id: Iac1e7802dbe1efa01c2befdd10406231788d4fc1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105315
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'comphelper')
-rw-r--r-- | comphelper/IwyuFilter_comphelper.yaml | 12 | ||||
-rw-r--r-- | comphelper/qa/unit/test_guards.cxx | 1 | ||||
-rw-r--r-- | comphelper/qa/unit/types_test.cxx | 1 | ||||
-rw-r--r-- | comphelper/source/container/enumerablemap.cxx | 2 | ||||
-rw-r--r-- | comphelper/source/misc/configuration.cxx | 1 | ||||
-rw-r--r-- | comphelper/source/misc/documentinfo.cxx | 1 | ||||
-rw-r--r-- | comphelper/source/misc/hash.cxx | 2 | ||||
-rw-r--r-- | comphelper/source/misc/lok.cxx | 1 | ||||
-rw-r--r-- | comphelper/source/misc/officerestartmanager.hxx | 1 | ||||
-rw-r--r-- | comphelper/source/misc/threadpool.cxx | 3 | ||||
-rw-r--r-- | comphelper/source/property/opropertybag.cxx | 1 | ||||
-rw-r--r-- | comphelper/source/property/propertystatecontainer.cxx | 1 | ||||
-rw-r--r-- | comphelper/source/xml/attributelist.cxx | 2 |
13 files changed, 15 insertions, 14 deletions
diff --git a/comphelper/IwyuFilter_comphelper.yaml b/comphelper/IwyuFilter_comphelper.yaml index 6d6ec0903716..3e22a187b7e5 100644 --- a/comphelper/IwyuFilter_comphelper.yaml +++ b/comphelper/IwyuFilter_comphelper.yaml @@ -19,6 +19,12 @@ excludelist: # Base class has to be a complete type - com/sun/star/lang/XServiceInfo.hpp - com/sun/star/util/XOfficeInstallationDirectories.hpp + comphelper/qa/unit/test_guards.cxx: + # Keep for system-cppunit; see also commit 456d61ec526e250fd1af894e109d5914ac9c9e6e + - unotest/bootstrapfixturebase.hxx + comphelper/source/container/embeddedobjectcontainer.cxx: + # Keep for OSL_DEBUG_LEVEL > 1 + - com/sun/star/container/XNameAccess.hpp comphelper/source/container/IndexedPropertyValuesContainer.cxx: # Needed for typedef - com/sun/star/beans/PropertyValue.hpp @@ -37,6 +43,9 @@ excludelist: comphelper/source/misc/fileurl.cxx: # Needed for linker visibility - comphelper/fileurl.hxx + comphelper/source/misc/AccessibleImplementationHelper.cxx: + # Needed for template + - com/sun/star/uno/Sequence.hxx comphelper/source/misc/getexpandeduri.cxx: # Needed for linker visibility - comphelper/getexpandeduri.hxx @@ -46,6 +55,9 @@ excludelist: comphelper/source/misc/hash.cxx: # OSL_BIGENDIAN is being checked - osl/endian.h + comphelper/source/misc/instancelocker.cxx: + # Needed for template + - com/sun/star/embed/XActionsApproval.hpp include/comphelper/interaction.hxx: # Stop warnings about include/ - com/sun/star/task/XInteractionApprove.hpp diff --git a/comphelper/qa/unit/test_guards.cxx b/comphelper/qa/unit/test_guards.cxx index 1d2b5f209daa..02daffaa521b 100644 --- a/comphelper/qa/unit/test_guards.cxx +++ b/comphelper/qa/unit/test_guards.cxx @@ -7,7 +7,6 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#include <sal/types.h> #include <comphelper/flagguard.hxx> #include <unotest/bootstrapfixturebase.hxx> diff --git a/comphelper/qa/unit/types_test.cxx b/comphelper/qa/unit/types_test.cxx index 89ad6cae870f..a0f136a5f49f 100644 --- a/comphelper/qa/unit/types_test.cxx +++ b/comphelper/qa/unit/types_test.cxx @@ -13,7 +13,6 @@ #include <cppunit/TestAssert.h> #include <cppunit/TestFixture.h> #include <cppunit/extensions/HelperMacros.h> -#include <cppunit/plugin/TestPlugIn.h> using namespace css; diff --git a/comphelper/source/container/enumerablemap.cxx b/comphelper/source/container/enumerablemap.cxx index 2add21d262b6..1730d2dc2668 100644 --- a/comphelper/source/container/enumerablemap.cxx +++ b/comphelper/source/container/enumerablemap.cxx @@ -34,9 +34,9 @@ #include <cppuhelper/compbase3.hxx> #include <cppuhelper/implbase.hxx> #include <cppuhelper/supportsservice.hxx> -#include <rtl/math.hxx> #include <typelib/typedescription.hxx> +#include <cmath> #include <map> #include <memory> #include <utility> diff --git a/comphelper/source/misc/configuration.cxx b/comphelper/source/misc/configuration.cxx index 24657ab011f5..a4041de4bb54 100644 --- a/comphelper/source/misc/configuration.cxx +++ b/comphelper/source/misc/configuration.cxx @@ -28,7 +28,6 @@ #include <comphelper/configuration.hxx> #include <comphelper/configurationlistener.hxx> #include <rtl/instance.hxx> -#include <rtl/ustrbuf.hxx> #include <rtl/ustring.hxx> #include <sal/log.hxx> #include <i18nlangtag/languagetag.hxx> diff --git a/comphelper/source/misc/documentinfo.cxx b/comphelper/source/misc/documentinfo.cxx index 044a6d0103fd..60901fefeefe 100644 --- a/comphelper/source/misc/documentinfo.cxx +++ b/comphelper/source/misc/documentinfo.cxx @@ -29,7 +29,6 @@ #include <cppuhelper/exc_hlp.hxx> -#include <osl/diagnose.h> #include <sal/log.hxx> namespace comphelper { diff --git a/comphelper/source/misc/hash.cxx b/comphelper/source/misc/hash.cxx index 67b79c1af8a0..50fd8cd0f961 100644 --- a/comphelper/source/misc/hash.cxx +++ b/comphelper/source/misc/hash.cxx @@ -9,7 +9,7 @@ #include <sal/config.h> -#include <com/sun/star/uno/Reference.hxx> +#include <com/sun/star/uno/RuntimeException.hpp> #include <comphelper/hash.hxx> #include <rtl/ustring.hxx> #include <rtl/alloc.h> diff --git a/comphelper/source/misc/lok.cxx b/comphelper/source/misc/lok.cxx index c0e0726b7440..82e5c7aed4f9 100644 --- a/comphelper/source/misc/lok.cxx +++ b/comphelper/source/misc/lok.cxx @@ -12,7 +12,6 @@ #include <sal/log.hxx> #include <iostream> -#include <map> namespace comphelper::LibreOfficeKit { diff --git a/comphelper/source/misc/officerestartmanager.hxx b/comphelper/source/misc/officerestartmanager.hxx index c473bfae4bec..8b3658a8e892 100644 --- a/comphelper/source/misc/officerestartmanager.hxx +++ b/comphelper/source/misc/officerestartmanager.hxx @@ -22,6 +22,7 @@ #include <com/sun/star/task/XRestartManager.hpp> #include <com/sun/star/lang/XServiceInfo.hpp> #include <com/sun/star/awt/XCallback.hpp> +#include <com/sun/star/uno/XComponentContext.hpp> #include <osl/mutex.hxx> #include <cppuhelper/implbase.hxx> diff --git a/comphelper/source/misc/threadpool.cxx b/comphelper/source/misc/threadpool.cxx index 044362eef055..3c335e7f4761 100644 --- a/comphelper/source/misc/threadpool.cxx +++ b/comphelper/source/misc/threadpool.cxx @@ -28,9 +28,6 @@ #if defined(_WIN32) #define WIN32_LEAN_AND_MEAN #include <windows.h> -#elif defined UNX -#include <unistd.h> -#include <fcntl.h> #endif namespace comphelper { diff --git a/comphelper/source/property/opropertybag.cxx b/comphelper/source/property/opropertybag.cxx index 5f5a1289ba31..f906374064af 100644 --- a/comphelper/source/property/opropertybag.cxx +++ b/comphelper/source/property/opropertybag.cxx @@ -30,7 +30,6 @@ #include <cppuhelper/exc_hlp.hxx> #include <algorithm> -#include <iterator> namespace com::sun::star::uno { class XComponentContext; } diff --git a/comphelper/source/property/propertystatecontainer.cxx b/comphelper/source/property/propertystatecontainer.cxx index e83d4752a57e..35598b262a68 100644 --- a/comphelper/source/property/propertystatecontainer.cxx +++ b/comphelper/source/property/propertystatecontainer.cxx @@ -18,7 +18,6 @@ */ #include <comphelper/propertystatecontainer.hxx> -#include <rtl/ustrbuf.hxx> namespace comphelper diff --git a/comphelper/source/xml/attributelist.cxx b/comphelper/source/xml/attributelist.cxx index fa918d01da29..d99139c852ea 100644 --- a/comphelper/source/xml/attributelist.cxx +++ b/comphelper/source/xml/attributelist.cxx @@ -19,8 +19,6 @@ #include <comphelper/attributelist.hxx> -#include <vector> - using namespace osl; using namespace com::sun::star; |