summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGabor Kelemen <kelemen.gabor2@nisz.hu>2019-05-16 00:23:44 +0200
committerMiklos Vajna <vmiklos@collabora.com>2019-05-23 09:06:27 +0200
commitc3c620c89d0159629f04642cb665fc8fdff7481e (patch)
tree7ac764530715934c7c71adf79d5ba345b744022c
parentxmloff: create XMLDrawStylesImportOasis instances with an uno constructor (diff)
downloadcore-c3c620c89d0159629f04642cb665fc8fdff7481e.tar.gz
core-c3c620c89d0159629f04642cb665fc8fdff7481e.zip
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 <vmiklos@collabora.com>
-rw-r--r--animations/IwyuFilter_animations.yaml2
-rw-r--r--animations/source/animcore/animcore.cxx5
-rw-r--r--eventattacher/IwyuFilter_eventattacher.yaml2
-rw-r--r--eventattacher/source/eventattacher.cxx4
-rw-r--r--i18nutil/IwyuFilter_i18nutil.yaml2
-rw-r--r--i18nutil/source/utility/paper.cxx2
-rw-r--r--i18nutil/source/utility/unicode.cxx1
7 files changed, 11 insertions, 7 deletions
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 <com/sun/star/util/XCloneable.hpp>
-#include <com/sun/star/uno/XComponentContext.hpp>
#include <com/sun/star/lang/IllegalArgumentException.hpp>
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <com/sun/star/lang/XTypeProvider.hpp>
@@ -44,7 +43,6 @@
#include <com/sun/star/presentation/ShapeAnimationSubType.hpp>
#include <com/sun/star/container/ElementExistException.hpp>
#include <com/sun/star/container/XEnumerationAccess.hpp>
-#include <com/sun/star/beans/NamedValue.hpp>
#include <com/sun/star/util/XChangesNotifier.hpp>
#include <com/sun/star/lang/XUnoTunnel.hpp>
#include <comphelper/servicehelper.hxx>
@@ -62,6 +60,9 @@
#include <algorithm>
#include <string.h>
+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 <com/sun/star/lang/ServiceNotRegisteredException.hpp>
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <com/sun/star/lang/XInitialization.hpp>
-#include <com/sun/star/lang/XMultiServiceFactory.hpp>
#include <com/sun/star/lang/XSingleServiceFactory.hpp>
-#include <com/sun/star/registry/XRegistryKey.hpp>
#include <com/sun/star/beans/IntrospectionException.hpp>
#include <com/sun/star/beans/theIntrospection.hpp>
#include <com/sun/star/beans/MethodConcept.hpp>
@@ -43,6 +41,8 @@
#include <cppuhelper/implbase.hxx>
#include <cppuhelper/supportsservice.hxx>
+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 <i18nutil/paper.hxx>
-#include <utility>
#include <cstdlib>
#include <unotools/configmgr.hxx>
#include <com/sun/star/lang/Locale.hpp>
#ifdef UNX
#include <stdio.h>
-#include <string.h>
#include <locale.h>
#if defined(LC_PAPER) && defined(_GNU_SOURCE)
#include <langinfo.h>
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 <com/sun/star/i18n/UnicodeType.hpp>
-#include <com/sun/star/i18n/KCharacterType.hpp>
#include <com/sun/star/i18n/ScriptType.hpp>
#include <i18nlangtag/languagetag.hxx>
#include <i18nlangtag/languagetagicu.hxx>