From 107399d684bae9e58f5e4020f15eb8a689f1db82 Mon Sep 17 00:00:00 2001 From: Gabor Kelemen Date: Sun, 29 Nov 2020 22:26:58 +0100 Subject: tdf#42949 Fix new IWYU warnings in directories s* Except recently checked sc, sd, svx, sw Found with bin/find-unneeded-includes Only removal proposals are dealt with here. Change-Id: Ice1b86628e4f22a39f307b9c5fa567b6ab9d5acb Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106917 Tested-by: Jenkins Reviewed-by: Miklos Vajna --- starmath/IwyuFilter_starmath.yaml | 14 ++++++++++++++ starmath/inc/AccessibleSmElement.hxx | 2 -- starmath/inc/AccessibleSmElementsControl.hxx | 2 +- starmath/inc/parse.hxx | 1 + starmath/source/AccessibleSmElement.cxx | 3 --- starmath/source/AccessibleSmElementsControl.cxx | 5 ----- starmath/source/ElementsDockingWindow.cxx | 2 -- starmath/source/edit.cxx | 1 - starmath/source/mathmlimport.cxx | 2 -- starmath/source/node.cxx | 5 ----- starmath/source/rect.cxx | 1 - starmath/source/smdetect.cxx | 1 - starmath/source/smdll.cxx | 1 - starmath/source/smmod.cxx | 1 - starmath/source/tmpdevice.cxx | 1 - starmath/source/view.cxx | 1 - starmath/source/visitors.cxx | 1 - 17 files changed, 16 insertions(+), 28 deletions(-) (limited to 'starmath') diff --git a/starmath/IwyuFilter_starmath.yaml b/starmath/IwyuFilter_starmath.yaml index f8051ab7a379..2855b3bb1f37 100644 --- a/starmath/IwyuFilter_starmath.yaml +++ b/starmath/IwyuFilter_starmath.yaml @@ -4,6 +4,12 @@ excludelist: starmath/inc/smmod.hxx: # Needed for define - sfx2/app.hxx + starmath/qa/extras/mmlexport-test.cxx: + # Required in C++20 mode. + - o3tl/cppunittraitshelper.hxx + starmath/qa/cppunit/test_node.cxx: + # Required in C++20 mode. + - o3tl/cppunittraitshelper.hxx starmath/source/accessibility.hxx: # Base class needs complete type - com/sun/star/accessibility/XAccessible.hpp @@ -19,6 +25,12 @@ excludelist: starmath/source/accessibility.cxx: # Needed for implicit dtor - editeng/editobj.hxx + starmath/source/node.cxx: + # Actually used + - vector + starmath/source/mathmlexport.cxx: + # Needed for rtl::math::round + - rtl/math.hxx starmath/source/smdll.cxx: # Needed to inherit linker visibility - smdll.hxx @@ -32,3 +44,5 @@ excludelist: starmath/source/unodoc.cxx: # Avoid loplugin:unreffun error - register.hxx + # Needed for template + - com/sun/star/frame/XModel.hpp diff --git a/starmath/inc/AccessibleSmElement.hxx b/starmath/inc/AccessibleSmElement.hxx index 202de6690899..2fb130719acf 100644 --- a/starmath/inc/AccessibleSmElement.hxx +++ b/starmath/inc/AccessibleSmElement.hxx @@ -21,7 +21,6 @@ #include #include -#include #include #include #include @@ -29,7 +28,6 @@ #include #include #include -#include class SmElementsControl; diff --git a/starmath/inc/AccessibleSmElementsControl.hxx b/starmath/inc/AccessibleSmElementsControl.hxx index 66cbd80bcef4..7d7e75b6ff4d 100644 --- a/starmath/inc/AccessibleSmElementsControl.hxx +++ b/starmath/inc/AccessibleSmElementsControl.hxx @@ -23,7 +23,7 @@ #include #include #include -#include +#include #include diff --git a/starmath/inc/parse.hxx b/starmath/inc/parse.hxx index d7db4772e81c..dde0c3454958 100644 --- a/starmath/inc/parse.hxx +++ b/starmath/inc/parse.hxx @@ -33,6 +33,7 @@ #include "error.hxx" class SmBlankNode; +class SmBinVerNode; class SmBracebodyNode; class SmExpressionNode; class SmGlyphSpecialNode; diff --git a/starmath/source/AccessibleSmElement.cxx b/starmath/source/AccessibleSmElement.cxx index 9903ce75df48..b995c23818cc 100644 --- a/starmath/source/AccessibleSmElement.cxx +++ b/starmath/source/AccessibleSmElement.cxx @@ -25,12 +25,9 @@ #include #include #include -#include #include #include #include -#include -#include using namespace ::com::sun::star::accessibility; using namespace ::com::sun::star; diff --git a/starmath/source/AccessibleSmElementsControl.cxx b/starmath/source/AccessibleSmElementsControl.cxx index 29701ce81ad9..15b226931a60 100644 --- a/starmath/source/AccessibleSmElementsControl.cxx +++ b/starmath/source/AccessibleSmElementsControl.cxx @@ -22,21 +22,16 @@ #include #include -#include -#include -#include #include #include #include #include #include -#include #include #include #include #include #include -#include using namespace ::com::sun::star; using namespace ::com::sun::star::accessibility; diff --git a/starmath/source/ElementsDockingWindow.cxx b/starmath/source/ElementsDockingWindow.cxx index 5083d94ff010..f45b42013af1 100644 --- a/starmath/source/ElementsDockingWindow.cxx +++ b/starmath/source/ElementsDockingWindow.cxx @@ -33,9 +33,7 @@ #include #include #include -#include #include -#include #include #include #include diff --git a/starmath/source/edit.cxx b/starmath/source/edit.cxx index a425e20f4b0e..b441b3802cc2 100644 --- a/starmath/source/edit.cxx +++ b/starmath/source/edit.cxx @@ -32,7 +32,6 @@ #include #include #include -#include #include #include diff --git a/starmath/source/mathmlimport.cxx b/starmath/source/mathmlimport.cxx index 9db1a3c4b4ed..085e4ce3e209 100644 --- a/starmath/source/mathmlimport.cxx +++ b/starmath/source/mathmlimport.cxx @@ -29,7 +29,6 @@ one go*/ #include #include #include -#include #include #include #include @@ -55,7 +54,6 @@ one go*/ #include #include #include -#include #include #include #include diff --git a/starmath/source/node.cxx b/starmath/source/node.cxx index 9b3b3b64288e..9ab23e172d8d 100644 --- a/starmath/source/node.cxx +++ b/starmath/source/node.cxx @@ -19,16 +19,12 @@ #include -#include #include #include #include -#include "mathtype.hxx" #include "tmpdevice.hxx" #include -#include -#include #include #include #include @@ -36,7 +32,6 @@ #include #include #include -#include #include #include diff --git a/starmath/source/rect.cxx b/starmath/source/rect.cxx index e3506c67de77..edb1e738ac59 100644 --- a/starmath/source/rect.cxx +++ b/starmath/source/rect.cxx @@ -30,7 +30,6 @@ #include #include -#include namespace { diff --git a/starmath/source/smdetect.cxx b/starmath/source/smdetect.cxx index aa6280156619..c5dce8352061 100644 --- a/starmath/source/smdetect.cxx +++ b/starmath/source/smdetect.cxx @@ -24,7 +24,6 @@ #include #include #include -#include #include #include diff --git a/starmath/source/smdll.cxx b/starmath/source/smdll.cxx index 78dc2183bca6..7ef93bfa0f3c 100644 --- a/starmath/source/smdll.cxx +++ b/starmath/source/smdll.cxx @@ -24,7 +24,6 @@ #include #include #include -#include #include #include diff --git a/starmath/source/smmod.cxx b/starmath/source/smmod.cxx index f0a809803a9e..df9e9e589821 100644 --- a/starmath/source/smmod.cxx +++ b/starmath/source/smmod.cxx @@ -29,7 +29,6 @@ #include #include "cfgitem.hxx" #include -#include #include #include #include diff --git a/starmath/source/tmpdevice.cxx b/starmath/source/tmpdevice.cxx index 074903d3ceb6..8135640cc60c 100644 --- a/starmath/source/tmpdevice.cxx +++ b/starmath/source/tmpdevice.cxx @@ -21,7 +21,6 @@ #include "tmpdevice.hxx" #include -#include #include // SmTmpDevice diff --git a/starmath/source/view.cxx b/starmath/source/view.cxx index abd832340d99..27288ffa3469 100644 --- a/starmath/source/view.cxx +++ b/starmath/source/view.cxx @@ -55,7 +55,6 @@ #include #include #include -#include #include #include #include diff --git a/starmath/source/visitors.cxx b/starmath/source/visitors.cxx index abae73e2e6f6..3c7e518f758a 100644 --- a/starmath/source/visitors.cxx +++ b/starmath/source/visitors.cxx @@ -15,7 +15,6 @@ #include "tmpdevice.hxx" #include #include -#include "mathtype.hxx" #include // SmDefaultingVisitor -- cgit