From c3c620c89d0159629f04642cb665fc8fdff7481e Mon Sep 17 00:00:00 2001 From: Gabor Kelemen Date: Thu, 16 May 2019 00:23:44 +0200 Subject: [PATCH] tdf#42949 Fix IWYU warnings in: animations/ eventattacher/ i18nutil/ Found with bin/find-unneeded-includes Only removal proposals are dealt with here. Change-Id: I23a6d485ee1ca0bc3801bcc1a6d748b8ed2b490c Reviewed-on: https://gerrit.libreoffice.org/72634 Tested-by: Jenkins Reviewed-by: Miklos Vajna --- animations/IwyuFilter_animations.yaml | 2 ++ animations/source/animcore/animcore.cxx | 5 +++-- eventattacher/IwyuFilter_eventattacher.yaml | 2 ++ eventattacher/source/eventattacher.cxx | 4 ++-- i18nutil/IwyuFilter_i18nutil.yaml | 2 ++ i18nutil/source/utility/paper.cxx | 2 -- i18nutil/source/utility/unicode.cxx | 1 - 7 files changed, 11 insertions(+), 7 deletions(-) create mode 100644 animations/IwyuFilter_animations.yaml create mode 100644 eventattacher/IwyuFilter_eventattacher.yaml create mode 100644 i18nutil/IwyuFilter_i18nutil.yaml diff --git a/animations/IwyuFilter_animations.yaml b/animations/IwyuFilter_animations.yaml new file mode 100644 index 000000000000..68726e459898 --- /dev/null +++ b/animations/IwyuFilter_animations.yaml @@ -0,0 +1,2 @@ +--- +assumeFilename: animations/source/animcore/animcore.cxx diff --git a/animations/source/animcore/animcore.cxx b/animations/source/animcore/animcore.cxx index d5bcb0c21b14..b5a9a174bd7b 100644 --- a/animations/source/animcore/animcore.cxx +++ b/animations/source/animcore/animcore.cxx @@ -18,7 +18,6 @@ */ #include -#include #include #include #include @@ -44,7 +43,6 @@ #include #include #include -#include #include #include #include @@ -62,6 +60,9 @@ #include #include +namespace com::sun::star::uno { class XComponentContext; } +namespace com::sun::star::beans { struct NamedValue; } + using ::osl::Mutex; using ::osl::Guard; using ::comphelper::OInterfaceContainerHelper2; diff --git a/eventattacher/IwyuFilter_eventattacher.yaml b/eventattacher/IwyuFilter_eventattacher.yaml new file mode 100644 index 000000000000..2922f0b494c5 --- /dev/null +++ b/eventattacher/IwyuFilter_eventattacher.yaml @@ -0,0 +1,2 @@ +--- +assumeFilename: eventattacher/source/eventattacher.cxx diff --git a/eventattacher/source/eventattacher.cxx b/eventattacher/source/eventattacher.cxx index 2711dd28a01a..6eebdc26a188 100644 --- a/eventattacher/source/eventattacher.cxx +++ b/eventattacher/source/eventattacher.cxx @@ -19,9 +19,7 @@ #include #include #include -#include #include -#include #include #include #include @@ -43,6 +41,8 @@ #include #include +namespace com::sun::star::lang { class XMultiServiceFactory; } + using namespace com::sun::star::uno; using namespace com::sun::star::registry; using namespace com::sun::star::lang; diff --git a/i18nutil/IwyuFilter_i18nutil.yaml b/i18nutil/IwyuFilter_i18nutil.yaml new file mode 100644 index 000000000000..7c69af4385c6 --- /dev/null +++ b/i18nutil/IwyuFilter_i18nutil.yaml @@ -0,0 +1,2 @@ +--- +assumeFilename: i18nutil/source/utility/paper.cxx diff --git a/i18nutil/source/utility/paper.cxx b/i18nutil/source/utility/paper.cxx index 9933ac6fe82f..6b59399e9124 100644 --- a/i18nutil/source/utility/paper.cxx +++ b/i18nutil/source/utility/paper.cxx @@ -27,14 +27,12 @@ #include -#include #include #include #include #ifdef UNX #include -#include #include #if defined(LC_PAPER) && defined(_GNU_SOURCE) #include diff --git a/i18nutil/source/utility/unicode.cxx b/i18nutil/source/utility/unicode.cxx index ce363acbc4e2..7e0c425368be 100644 --- a/i18nutil/source/utility/unicode.cxx +++ b/i18nutil/source/utility/unicode.cxx @@ -18,7 +18,6 @@ */ #include -#include #include #include #include