summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabor Kelemen <kelemeng@ubuntu.com>2023-09-16 23:06:24 +0200
committerThorsten Behrens <thorsten.behrens@allotropia.de>2023-11-06 00:33:57 +0100
commit026be6f62f183f14b9c0bf2e50cde9ac69856f53 (patch)
tree9dfc589bc4f00b4e6a378f72d6083cd4b2f1dc94
parent5fb20ede2fb47ef91d70b49288129adf8015f34b (diff)
tdf#146619 Recheck include/t* with IWYU
Change-Id: I005257e458351285b1b35ffe49c8b42834a6db68 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/156990 Tested-by: Jenkins Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
-rw-r--r--include/test/a11y/eventposter.hxx1
-rw-r--r--include/test/text/xautotextcontainer.hxx1
-rw-r--r--include/test/text/xfootnote.hxx3
-rw-r--r--include/test/text/xtextrangecompare.hxx3
-rw-r--r--include/toolkit/awt/vclxdevice.hxx1
-rw-r--r--include/toolkit/awt/vclxfont.hxx1
-rw-r--r--include/toolkit/awt/vclxmenu.hxx1
-rw-r--r--include/toolkit/awt/vclxwindow.hxx1
-rw-r--r--include/toolkit/controls/unocontrolmodel.hxx1
-rw-r--r--include/tools/bigint.hxx4
-rw-r--r--include/tools/gen.hxx1
-rw-r--r--include/tools/inetmime.hxx1
-rw-r--r--include/tools/json_writer.hxx3
-rw-r--r--include/tools/multisel.hxx1
-rw-r--r--include/ucbhelper/interactionrequest.hxx1
-rw-r--r--include/ucbhelper/resultsethelper.hxx1
-rw-r--r--include/unotools/VersionConfig.hxx2
-rw-r--r--include/unotools/streamwrap.hxx1
-rw-r--r--include/unotools/syslocale.hxx1
-rw-r--r--include/unotools/weakref.hxx1
-rw-r--r--include/vcl/settings.hxx2
-rw-r--r--svl/source/misc/inettype.cxx1
-rw-r--r--tools/source/inet/inetmime.cxx1
23 files changed, 9 insertions, 25 deletions
diff --git a/include/test/a11y/eventposter.hxx b/include/test/a11y/eventposter.hxx
index c0e607a70100..d9bce5601fe0 100644
--- a/include/test/a11y/eventposter.hxx
+++ b/include/test/a11y/eventposter.hxx
@@ -12,7 +12,6 @@
#include <test/testdllapi.hxx>
#include <com/sun/star/accessibility/XAccessible.hpp>
-#include <com/sun/star/accessibility/XAccessibleContext.hpp>
#include <com/sun/star/uno/Reference.hxx>
#include <LibreOfficeKit/LibreOfficeKitEnums.h>
diff --git a/include/test/text/xautotextcontainer.hxx b/include/test/text/xautotextcontainer.hxx
index a2ab07497362..cfc20f04c629 100644
--- a/include/test/text/xautotextcontainer.hxx
+++ b/include/test/text/xautotextcontainer.hxx
@@ -14,7 +14,6 @@
#include <com/sun/star/uno/XInterface.hpp>
-#include <com/sun/star/uno/Any.hxx>
#include <com/sun/star/uno/Reference.hxx>
#include <utility>
diff --git a/include/test/text/xfootnote.hxx b/include/test/text/xfootnote.hxx
index eb6f8bd0bd5e..a6f29b8084a9 100644
--- a/include/test/text/xfootnote.hxx
+++ b/include/test/text/xfootnote.hxx
@@ -9,14 +9,11 @@
#pragma once
-#include <rtl/ustring.hxx>
#include <test/testdllapi.hxx>
#include <com/sun/star/uno/XInterface.hpp>
-#include <com/sun/star/uno/Any.hxx>
#include <com/sun/star/uno/Reference.hxx>
-#include <utility>
namespace apitest
{
diff --git a/include/test/text/xtextrangecompare.hxx b/include/test/text/xtextrangecompare.hxx
index b7e36a5cc445..60f4ff67b10b 100644
--- a/include/test/text/xtextrangecompare.hxx
+++ b/include/test/text/xtextrangecompare.hxx
@@ -9,14 +9,11 @@
#pragma once
-#include <rtl/ustring.hxx>
#include <test/testdllapi.hxx>
#include <com/sun/star/uno/XInterface.hpp>
-#include <com/sun/star/uno/Any.hxx>
#include <com/sun/star/uno/Reference.hxx>
-#include <utility>
namespace apitest
{
diff --git a/include/toolkit/awt/vclxdevice.hxx b/include/toolkit/awt/vclxdevice.hxx
index 08a12a65353e..4538eb9d8733 100644
--- a/include/toolkit/awt/vclxdevice.hxx
+++ b/include/toolkit/awt/vclxdevice.hxx
@@ -22,7 +22,6 @@
#include <toolkit/dllapi.h>
#include <com/sun/star/awt/XDevice.hpp>
-#include <comphelper/servicehelper.hxx>
#include <cppuhelper/implbase.hxx>
#include <vcl/virdev.hxx>
#include <vcl/vclptr.hxx>
diff --git a/include/toolkit/awt/vclxfont.hxx b/include/toolkit/awt/vclxfont.hxx
index c4f768954c6e..3142a18123c1 100644
--- a/include/toolkit/awt/vclxfont.hxx
+++ b/include/toolkit/awt/vclxfont.hxx
@@ -23,7 +23,6 @@
#include <memory>
#include <toolkit/dllapi.h>
#include <com/sun/star/awt/XFont2.hpp>
-#include <comphelper/servicehelper.hxx>
#include <cppuhelper/implbase.hxx>
#include <mutex>
#include <vcl/font.hxx>
diff --git a/include/toolkit/awt/vclxmenu.hxx b/include/toolkit/awt/vclxmenu.hxx
index bc971a2088ec..3498e8dabe57 100644
--- a/include/toolkit/awt/vclxmenu.hxx
+++ b/include/toolkit/awt/vclxmenu.hxx
@@ -29,7 +29,6 @@
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <com/sun/star/lang/XTypeProvider.hpp>
-#include <comphelper/servicehelper.hxx>
#include <cppuhelper/weak.hxx>
#include <mutex>
diff --git a/include/toolkit/awt/vclxwindow.hxx b/include/toolkit/awt/vclxwindow.hxx
index b4b0a82b544b..f3b605bc848c 100644
--- a/include/toolkit/awt/vclxwindow.hxx
+++ b/include/toolkit/awt/vclxwindow.hxx
@@ -32,7 +32,6 @@
#include <com/sun/star/awt/XDockableWindow.hpp>
#include <com/sun/star/awt/XStyleSettingsSupplier.hpp>
-#include <comphelper/servicehelper.hxx>
#include <cppuhelper/implbase.hxx>
#include <tools/gen.hxx>
diff --git a/include/toolkit/controls/unocontrolmodel.hxx b/include/toolkit/controls/unocontrolmodel.hxx
index 35c14fdece7f..f157c2cd000f 100644
--- a/include/toolkit/controls/unocontrolmodel.hxx
+++ b/include/toolkit/controls/unocontrolmodel.hxx
@@ -28,7 +28,6 @@
#include <com/sun/star/util/XCloneable.hpp>
#include <cppuhelper/weakagg.hxx>
-#include <comphelper/broadcasthelper.hxx>
#include <toolkit/helper/listenermultiplexer.hxx>
#include <comphelper/propshlp.hxx>
diff --git a/include/tools/bigint.hxx b/include/tools/bigint.hxx
index ae33a5e67d53..f8f57fc45de7 100644
--- a/include/tools/bigint.hxx
+++ b/include/tools/bigint.hxx
@@ -19,10 +19,12 @@
#ifndef INCLUDED_TOOLS_BIGINT_HXX
#define INCLUDED_TOOLS_BIGINT_HXX
-#include <rtl/ustring.hxx>
#include <tools/toolsdllapi.h>
#include <tools/long.hxx>
+#include <cassert>
+#include <string_view>
+
#define MAX_DIGITS 8
class SAL_WARN_UNUSED TOOLS_DLLPUBLIC BigInt
diff --git a/include/tools/gen.hxx b/include/tools/gen.hxx
index 33079e084181..d6ac5f2ec787 100644
--- a/include/tools/gen.hxx
+++ b/include/tools/gen.hxx
@@ -26,7 +26,6 @@
#include <limits.h>
#include <algorithm>
#include <ostream>
-#include <config_options.h>
#include <o3tl/unit_conversion.hxx>
class SvStream;
diff --git a/include/tools/inetmime.hxx b/include/tools/inetmime.hxx
index 3c0fe30ffbde..bd0ba36bb1b9 100644
--- a/include/tools/inetmime.hxx
+++ b/include/tools/inetmime.hxx
@@ -23,7 +23,6 @@
#include <rtl/character.hxx>
#include <rtl/string.hxx>
#include <rtl/ustring.hxx>
-#include <tools/debug.hxx>
#include <unordered_map>
diff --git a/include/tools/json_writer.hxx b/include/tools/json_writer.hxx
index a84e9660704d..c5faf542f1d8 100644
--- a/include/tools/json_writer.hxx
+++ b/include/tools/json_writer.hxx
@@ -13,11 +13,8 @@
#include <tools/toolsdllapi.h>
#include <rtl/string.hxx>
#include <rtl/ustring.hxx>
-#include <sal/types.h>
-#include <string>
#include <string_view>
-#include <utility>
/** Simple JSON encoder designed specifically for LibreOfficeKit purposes.
*
diff --git a/include/tools/multisel.hxx b/include/tools/multisel.hxx
index ea7a1343feeb..edb572acb18e 100644
--- a/include/tools/multisel.hxx
+++ b/include/tools/multisel.hxx
@@ -21,7 +21,6 @@
#include <tools/toolsdllapi.h>
#include <tools/gen.hxx>
-#include <rtl/ustring.hxx>
#include <cstddef>
#include <vector>
diff --git a/include/ucbhelper/interactionrequest.hxx b/include/ucbhelper/interactionrequest.hxx
index 16e9eda38b96..9014398a7ffe 100644
--- a/include/ucbhelper/interactionrequest.hxx
+++ b/include/ucbhelper/interactionrequest.hxx
@@ -20,7 +20,6 @@
#ifndef INCLUDED_UCBHELPER_INTERACTIONREQUEST_HXX
#define INCLUDED_UCBHELPER_INTERACTIONREQUEST_HXX
-#include <config_options.h>
#include <com/sun/star/lang/XTypeProvider.hpp>
#include <com/sun/star/task/XInteractionRequest.hpp>
#include <com/sun/star/task/XInteractionAbort.hpp>
diff --git a/include/ucbhelper/resultsethelper.hxx b/include/ucbhelper/resultsethelper.hxx
index 9a0da6a5c1f9..2fdf9a38a095 100644
--- a/include/ucbhelper/resultsethelper.hxx
+++ b/include/ucbhelper/resultsethelper.hxx
@@ -20,7 +20,6 @@
#ifndef INCLUDED_UCBHELPER_RESULTSETHELPER_HXX
#define INCLUDED_UCBHELPER_RESULTSETHELPER_HXX
-#include <memory>
#include <mutex>
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <com/sun/star/ucb/XDynamicResultSet.hpp>
diff --git a/include/unotools/VersionConfig.hxx b/include/unotools/VersionConfig.hxx
index 6142f5548fa5..5e40b0af8756 100644
--- a/include/unotools/VersionConfig.hxx
+++ b/include/unotools/VersionConfig.hxx
@@ -12,6 +12,8 @@
#include <officecfg/Setup.hxx>
#include <unotools/configmgr.hxx>
#include <o3tl/string_view.hxx>
+#include <rtl/ustring.hxx>
+#include <sal/log.hxx>
#include <com/sun/star/lang/IllegalArgumentException.hpp>
diff --git a/include/unotools/streamwrap.hxx b/include/unotools/streamwrap.hxx
index 479f73e514e8..e6a105bd0e5f 100644
--- a/include/unotools/streamwrap.hxx
+++ b/include/unotools/streamwrap.hxx
@@ -26,7 +26,6 @@
#include <com/sun/star/io/XSeekable.hpp>
#include <com/sun/star/io/XTruncate.hpp>
#include <com/sun/star/io/XStream.hpp>
-#include <com/sun/star/lang/XUnoTunnel.hpp>
#include <comphelper/bytereader.hxx>
#include <cppuhelper/implbase.hxx>
#include <cppuhelper/implbase1.hxx>
diff --git a/include/unotools/syslocale.hxx b/include/unotools/syslocale.hxx
index a0a67833774a..8a75ec7a44fc 100644
--- a/include/unotools/syslocale.hxx
+++ b/include/unotools/syslocale.hxx
@@ -21,7 +21,6 @@
#define INCLUDED_UNOTOOLS_SYSLOCALE_HXX
#include <unotools/unotoolsdllapi.h>
-#include <rtl/textenc.h>
#include <memory>
diff --git a/include/unotools/weakref.hxx b/include/unotools/weakref.hxx
index 0cab7d0e9b2a..34a7242bdfc1 100644
--- a/include/unotools/weakref.hxx
+++ b/include/unotools/weakref.hxx
@@ -29,7 +29,6 @@
#include <cppuhelper/weakref.hxx>
#include <cppuhelper/weak.hxx>
#include <rtl/ref.hxx>
-#include <type_traits>
namespace unotools
{
diff --git a/include/vcl/settings.hxx b/include/vcl/settings.hxx
index addf6ebe5711..3b8ac61ca586 100644
--- a/include/vcl/settings.hxx
+++ b/include/vcl/settings.hxx
@@ -20,6 +20,8 @@
#ifndef INCLUDED_VCL_SETTINGS_HXX
#define INCLUDED_VCL_SETTINGS_HXX
+#include <config_options.h>
+
#include <vcl/dllapi.h>
#include <tools/color.hxx>
#include <tools/gen.hxx>
diff --git a/svl/source/misc/inettype.cxx b/svl/source/misc/inettype.cxx
index d75e856ae880..da6c86f5d99b 100644
--- a/svl/source/misc/inettype.cxx
+++ b/svl/source/misc/inettype.cxx
@@ -21,6 +21,7 @@
#include <array>
+#include <tools/debug.hxx>
#include <tools/wldcrd.hxx>
#include <tools/inetmime.hxx>
#include <o3tl/string_view.hxx>
diff --git a/tools/source/inet/inetmime.cxx b/tools/source/inet/inetmime.cxx
index e6b725490e58..6694dc398669 100644
--- a/tools/source/inet/inetmime.cxx
+++ b/tools/source/inet/inetmime.cxx
@@ -27,6 +27,7 @@
#include <rtl/strbuf.hxx>
#include <rtl/ustrbuf.hxx>
#include <rtl/tencinfo.h>
+#include <tools/debug.hxx>
#include <tools/inetmime.hxx>
#include <rtl/character.hxx>