diff options
author | Gabor Kelemen <kelemeng@ubuntu.com> | 2022-04-10 13:11:33 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2022-04-12 15:20:47 +0200 |
commit | 2b44f9490853c9de5a0e92c41fdc1279b6c91e06 (patch) | |
tree | f381f0c82184c05df066fbd71a07a00da9a7345d /unotools | |
parent | 67a5469f1cc40253453f1248622d2e52c92964ab (diff) |
Recheck modules [uU]* with IWYU
See tdf#42949 for motivation
Change-Id: If710445176681de8e0a0b6c65f58ecaca19dbccf
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132768
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'unotools')
23 files changed, 5 insertions, 50 deletions
diff --git a/unotools/IwyuFilter_unotools.yaml b/unotools/IwyuFilter_unotools.yaml index 63574a54c7fe..0a3b6eeff08e 100644 --- a/unotools/IwyuFilter_unotools.yaml +++ b/unotools/IwyuFilter_unotools.yaml @@ -38,4 +38,6 @@ excludelist: unotools/source/ucbhelper/ucbstreamhelper.cxx: # Needed for direct member access - com/sun/star/beans/PropertyValue.hpp - + unotools/source/misc/datetime.cxx: + # Needed for rtl::math::round + - rtl/math.hxx diff --git a/unotools/source/config/compatibility.cxx b/unotools/source/config/compatibility.cxx index b12cf6174d58..affcaf5a38e0 100644 --- a/unotools/source/config/compatibility.cxx +++ b/unotools/source/config/compatibility.cxx @@ -31,7 +31,6 @@ #include "itemholder1.hxx" #include <algorithm> -#include <vector> using namespace ::std; using namespace ::utl; diff --git a/unotools/source/config/configitem.cxx b/unotools/source/config/configitem.cxx index d6741142a9a5..2632a79fb3b7 100644 --- a/unotools/source/config/configitem.cxx +++ b/unotools/source/config/configitem.cxx @@ -38,7 +38,6 @@ #include <osl/diagnose.h> #include <comphelper/sequence.hxx> #include <comphelper/solarmutex.hxx> -#include <rtl/ref.hxx> #include <tools/diagnose_ex.h> using namespace utl; diff --git a/unotools/source/config/defaultoptions.cxx b/unotools/source/config/defaultoptions.cxx index 2cdbc263b2be..127cc685801d 100644 --- a/unotools/source/config/defaultoptions.cxx +++ b/unotools/source/config/defaultoptions.cxx @@ -20,11 +20,8 @@ #include <sal/config.h> #include <osl/file.hxx> -#include <sal/log.hxx> #include <unotools/defaultoptions.hxx> #include <unotools/pathoptions.hxx> -#include <tools/debug.hxx> -#include <com/sun/star/uno/Any.hxx> #include <com/sun/star/uno/Sequence.hxx> #include <rtl/ustrbuf.hxx> #include <officecfg/Office/Common.hxx> diff --git a/unotools/source/config/dynamicmenuoptions.cxx b/unotools/source/config/dynamicmenuoptions.cxx index 3872d5a92120..60c07baacafb 100644 --- a/unotools/source/config/dynamicmenuoptions.cxx +++ b/unotools/source/config/dynamicmenuoptions.cxx @@ -20,15 +20,12 @@ #include <sal/config.h> #include <o3tl/string_view.hxx> -#include <sal/log.hxx> #include <unotools/dynamicmenuoptions.hxx> #include <tools/debug.hxx> #include <unotools/configmgr.hxx> #include <unotools/configitem.hxx> #include <com/sun/star/uno/Any.hxx> #include <com/sun/star/uno/Sequence.hxx> -#include <com/sun/star/beans/PropertyValue.hpp> -#include <comphelper/string.hxx> #include <vector> #include <algorithm> diff --git a/unotools/source/config/historyoptions.cxx b/unotools/source/config/historyoptions.cxx index c317aff79918..de8186795cda 100644 --- a/unotools/source/config/historyoptions.cxx +++ b/unotools/source/config/historyoptions.cxx @@ -21,12 +21,6 @@ #include <com/sun/star/uno/Any.hxx> #include <com/sun/star/uno/Sequence.hxx> -#include <cassert> -#include <algorithm> - -#include "itemholder1.hxx" - -#include <com/sun/star/beans/PropertyValue.hpp> #include <com/sun/star/beans/XPropertySet.hpp> #include <com/sun/star/container/XNameAccess.hpp> #include <com/sun/star/container/XNameContainer.hpp> @@ -36,7 +30,6 @@ #include <tools/diagnose_ex.h> #include <optional> -using namespace ::utl; using namespace ::com::sun::star; using namespace ::com::sun::star::uno; using namespace ::com::sun::star::beans; diff --git a/unotools/source/config/itemholder1.cxx b/unotools/source/config/itemholder1.cxx index 5931026995ac..88ab894491b0 100644 --- a/unotools/source/config/itemholder1.cxx +++ b/unotools/source/config/itemholder1.cxx @@ -26,19 +26,12 @@ #include <unotools/useroptions.hxx> #include <unotools/cmdoptions.hxx> #include <unotools/compatibility.hxx> -#include <unotools/defaultoptions.hxx> -#include <unotools/dynamicmenuoptions.hxx> -#include <unotools/historyoptions.hxx> #include <unotools/lingucfg.hxx> #include <unotools/moduleoptions.hxx> #include <unotools/pathoptions.hxx> -#include <unotools/optionsdlg.hxx> -#include <unotools/securityoptions.hxx> -#include <unotools/viewoptions.hxx> #include <unotools/options.hxx> #include <unotools/syslocaleoptions.hxx> #include <rtl/ref.hxx> -#include <sal/log.hxx> #include <osl/diagnose.h> #include <tools/diagnose_ex.h> diff --git a/unotools/source/config/pathoptions.cxx b/unotools/source/config/pathoptions.cxx index 27ddbed79c24..8e6feef618ab 100644 --- a/unotools/source/config/pathoptions.cxx +++ b/unotools/source/config/pathoptions.cxx @@ -43,7 +43,6 @@ #include <set> #include <unordered_map> -#include <vector> using namespace osl; using namespace utl; diff --git a/unotools/source/config/saveopt.cxx b/unotools/source/config/saveopt.cxx index 6bac9ea28d04..b91ba8639619 100644 --- a/unotools/source/config/saveopt.cxx +++ b/unotools/source/config/saveopt.cxx @@ -22,14 +22,7 @@ #include <sal/log.hxx> #include <unotools/saveopt.hxx> #include <unotools/configmgr.hxx> -#include <unotools/configitem.hxx> -#include <tools/debug.hxx> -#include <com/sun/star/uno/Any.hxx> -#include <com/sun/star/uno/Sequence.hxx> -#include <osl/diagnose.h> -#include <osl/mutex.hxx> -#include <officecfg/Office/Recovery.hxx> #include <officecfg/Office/Common.hxx> using namespace utl; diff --git a/unotools/source/config/securityoptions.cxx b/unotools/source/config/securityoptions.cxx index 8dc0a8ac8461..4749065fb431 100644 --- a/unotools/source/config/securityoptions.cxx +++ b/unotools/source/config/securityoptions.cxx @@ -21,7 +21,6 @@ #include <unotools/configmgr.hxx> #include <unotools/configitem.hxx> #include <unotools/ucbhelper.hxx> -#include <tools/debug.hxx> #include <com/sun/star/uno/Any.hxx> #include <com/sun/star/uno/Sequence.hxx> diff --git a/unotools/source/config/useroptions.cxx b/unotools/source/config/useroptions.cxx index b26d2a5015bc..d605e6662e18 100644 --- a/unotools/source/config/useroptions.cxx +++ b/unotools/source/config/useroptions.cxx @@ -22,7 +22,6 @@ #include <unotools/useroptions.hxx> #include <unotools/syslocale.hxx> #include <com/sun/star/uno/Any.hxx> -#include <osl/mutex.hxx> #include "itemholder1.hxx" #include <cppuhelper/implbase.hxx> diff --git a/unotools/source/config/viewoptions.cxx b/unotools/source/config/viewoptions.cxx index 4fff44a2051a..de72225876e3 100644 --- a/unotools/source/config/viewoptions.cxx +++ b/unotools/source/config/viewoptions.cxx @@ -24,8 +24,6 @@ #include <com/sun/star/container/XNameContainer.hpp> #include <com/sun/star/container/XNameAccess.hpp> #include <com/sun/star/beans/XPropertySet.hpp> -#include <osl/diagnose.h> -#include <sal/log.hxx> #include <unotools/configmgr.hxx> #include <comphelper/configurationhelper.hxx> #include <comphelper/processfactory.hxx> diff --git a/unotools/source/i18n/charclass.cxx b/unotools/source/i18n/charclass.cxx index dee05388e150..e11ffb6e27d0 100644 --- a/unotools/source/i18n/charclass.cxx +++ b/unotools/source/i18n/charclass.cxx @@ -18,7 +18,6 @@ */ #include <comphelper/processfactory.hxx> -#include <sal/log.hxx> #include <unotools/charclass.hxx> #include <rtl/character.hxx> #include <tools/diagnose_ex.h> diff --git a/unotools/source/i18n/localedatawrapper.cxx b/unotools/source/i18n/localedatawrapper.cxx index 83a2d65ac41f..170e826e7eed 100644 --- a/unotools/source/i18n/localedatawrapper.cxx +++ b/unotools/source/i18n/localedatawrapper.cxx @@ -23,7 +23,6 @@ #include <sal/log.hxx> #include <unotools/localedatawrapper.hxx> -#include <unotools/calendarwrapper.hxx> #include <unotools/digitgroupingiterator.hxx> #include <tools/diagnose_ex.h> #include <tools/debug.hxx> @@ -32,8 +31,6 @@ #include <com/sun/star/i18n/KNumberFormatUsage.hpp> #include <com/sun/star/i18n/KNumberFormatType.hpp> #include <com/sun/star/i18n/LocaleData2.hpp> -#include <com/sun/star/i18n/CalendarFieldIndex.hpp> -#include <com/sun/star/i18n/CalendarDisplayIndex.hpp> #include <com/sun/star/i18n/NumberFormatIndex.hpp> #include <com/sun/star/i18n/NumberFormatMapper.hpp> @@ -41,6 +38,8 @@ #include <comphelper/sequence.hxx> #include <rtl/ustrbuf.hxx> #include <rtl/math.hxx> +#include <tools/date.hxx> +#include <tools/time.hxx> const sal_uInt16 nCurrFormatDefault = 0; diff --git a/unotools/source/i18n/nativenumberwrapper.cxx b/unotools/source/i18n/nativenumberwrapper.cxx index 5c1bb4c0b5de..9c7b7d422919 100644 --- a/unotools/source/i18n/nativenumberwrapper.cxx +++ b/unotools/source/i18n/nativenumberwrapper.cxx @@ -19,7 +19,6 @@ #include <sal/config.h> -#include <sal/log.hxx> #include <unotools/nativenumberwrapper.hxx> #include <com/sun/star/i18n/NativeNumberSupplier2.hpp> #include <tools/diagnose_ex.h> diff --git a/unotools/source/i18n/resmgr.cxx b/unotools/source/i18n/resmgr.cxx index a10b4710ad8d..fb6d32a45d6b 100644 --- a/unotools/source/i18n/resmgr.cxx +++ b/unotools/source/i18n/resmgr.cxx @@ -51,9 +51,7 @@ #include <boost/locale.hpp> #include <boost/locale/gnu_gettext.hpp> -#include <array> #include <unordered_map> -#include <memory> #ifdef ANDROID #include <osl/detail/android-bootstrap.h> diff --git a/unotools/source/i18n/textsearch.cxx b/unotools/source/i18n/textsearch.cxx index 0ed0539b0e17..79d5cc68f580 100644 --- a/unotools/source/i18n/textsearch.cxx +++ b/unotools/source/i18n/textsearch.cxx @@ -28,7 +28,6 @@ #include <com/sun/star/util/TextSearch2.hpp> #include <com/sun/star/util/SearchAlgorithms2.hpp> #include <com/sun/star/util/SearchFlags.hpp> -#include <sal/log.hxx> #include <unotools/charclass.hxx> #include <comphelper/processfactory.hxx> #include <unotools/textsearch.hxx> diff --git a/unotools/source/i18n/transliterationwrapper.cxx b/unotools/source/i18n/transliterationwrapper.cxx index ff6f4933d88c..904ec82dc326 100644 --- a/unotools/source/i18n/transliterationwrapper.cxx +++ b/unotools/source/i18n/transliterationwrapper.cxx @@ -19,7 +19,6 @@ #include <sal/config.h> -#include <sal/log.hxx> #include <unotools/transliterationwrapper.hxx> #include <i18nlangtag/languagetag.hxx> #include <i18nutil/transliteration.hxx> diff --git a/unotools/source/misc/ServiceDocumenter.cxx b/unotools/source/misc/ServiceDocumenter.cxx index 695272641080..0bf1ce9fa52f 100644 --- a/unotools/source/misc/ServiceDocumenter.cxx +++ b/unotools/source/misc/ServiceDocumenter.cxx @@ -11,7 +11,6 @@ #include <com/sun/star/system/XSystemShellExecute.hpp> #include <com/sun/star/uno/XComponentContext.hpp> #include <cppuhelper/supportsservice.hxx> -#include <rtl/ref.hxx> using namespace com::sun::star; using uno::Reference; diff --git a/unotools/source/misc/mediadescriptor.cxx b/unotools/source/misc/mediadescriptor.cxx index 348fa8fe7673..55a066cfe58b 100644 --- a/unotools/source/misc/mediadescriptor.cxx +++ b/unotools/source/misc/mediadescriptor.cxx @@ -28,7 +28,6 @@ #include <com/sun/star/ucb/ContentCreationException.hpp> #include <com/sun/star/ucb/XContent.hpp> -#include <com/sun/star/ucb/XCommandEnvironment.hpp> #include <com/sun/star/task/XInteractionHandler.hpp> #include <com/sun/star/io/XStream.hpp> #include <com/sun/star/io/XActiveDataSink.hpp> diff --git a/unotools/source/misc/syslocale.cxx b/unotools/source/misc/syslocale.cxx index f6fd3c18a45b..889d9b34688f 100644 --- a/unotools/source/misc/syslocale.cxx +++ b/unotools/source/misc/syslocale.cxx @@ -25,7 +25,6 @@ #include <unotools/syslocale.hxx> #include <unotools/syslocaleoptions.hxx> #include <comphelper/lok.hxx> -#include <comphelper/sequence.hxx> #include <rtl/tencinfo.h> #include <rtl/locale.h> #include <osl/thread.h> diff --git a/unotools/source/misc/wincodepage.cxx b/unotools/source/misc/wincodepage.cxx index a5ba6d428a7d..79353e47ce94 100644 --- a/unotools/source/misc/wincodepage.cxx +++ b/unotools/source/misc/wincodepage.cxx @@ -12,7 +12,6 @@ #include <string_view> #include <unotools/wincodepage.hxx> -#include <rtl/string.h> #include <rtl/textenc.h> namespace{ diff --git a/unotools/source/ucbhelper/ucbhelper.cxx b/unotools/source/ucbhelper/ucbhelper.cxx index f91fac4e921b..e6a31ef318bb 100644 --- a/unotools/source/ucbhelper/ucbhelper.cxx +++ b/unotools/source/ucbhelper/ucbhelper.cxx @@ -41,12 +41,10 @@ #include <com/sun/star/uno/RuntimeException.hpp> #include <com/sun/star/uno/Sequence.hxx> #include <comphelper/processfactory.hxx> -#include <cppuhelper/exc_hlp.hxx> #include <comphelper/simplefileaccessinteraction.hxx> #include <osl/file.hxx> #include <rtl/ustring.hxx> #include <sal/log.hxx> -#include <sal/types.h> #include <tools/datetime.hxx> #include <tools/urlobj.hxx> #include <tools/diagnose_ex.h> |