diff options
author | Gabor Kelemen <kelemen.gabor2@nisz.hu> | 2020-11-29 22:26:58 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2020-12-01 14:56:43 +0100 |
commit | 107399d684bae9e58f5e4020f15eb8a689f1db82 (patch) | |
tree | d4acfa1fab53bf624a245f893fcca6221b56230c /starmath | |
parent | 9c94bae963ef5019f6ca0394d076b1288969aa53 (diff) |
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 <vmiklos@collabora.com>
Diffstat (limited to 'starmath')
-rw-r--r-- | starmath/IwyuFilter_starmath.yaml | 14 | ||||
-rw-r--r-- | starmath/inc/AccessibleSmElement.hxx | 2 | ||||
-rw-r--r-- | starmath/inc/AccessibleSmElementsControl.hxx | 2 | ||||
-rw-r--r-- | starmath/inc/parse.hxx | 1 | ||||
-rw-r--r-- | starmath/source/AccessibleSmElement.cxx | 3 | ||||
-rw-r--r-- | starmath/source/AccessibleSmElementsControl.cxx | 5 | ||||
-rw-r--r-- | starmath/source/ElementsDockingWindow.cxx | 2 | ||||
-rw-r--r-- | starmath/source/edit.cxx | 1 | ||||
-rw-r--r-- | starmath/source/mathmlimport.cxx | 2 | ||||
-rw-r--r-- | starmath/source/node.cxx | 5 | ||||
-rw-r--r-- | starmath/source/rect.cxx | 1 | ||||
-rw-r--r-- | starmath/source/smdetect.cxx | 1 | ||||
-rw-r--r-- | starmath/source/smdll.cxx | 1 | ||||
-rw-r--r-- | starmath/source/smmod.cxx | 1 | ||||
-rw-r--r-- | starmath/source/tmpdevice.cxx | 1 | ||||
-rw-r--r-- | starmath/source/view.cxx | 1 | ||||
-rw-r--r-- | starmath/source/visitors.cxx | 1 |
17 files changed, 16 insertions, 28 deletions
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 <com/sun/star/accessibility/XAccessible.hpp> #include <com/sun/star/accessibility/XAccessibleAction.hpp> -#include <com/sun/star/accessibility/XAccessibleComponent.hpp> #include <com/sun/star/accessibility/XAccessibleContext.hpp> #include <com/sun/star/accessibility/XAccessibleStateSet.hpp> #include <com/sun/star/awt/Rectangle.hpp> @@ -29,7 +28,6 @@ #include <cppuhelper/implbase3.hxx> #include <comphelper/accessiblecomponenthelper.hxx> #include <sal/types.h> -#include <vcl/vclptr.hxx> 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 <com/sun/star/accessibility/XAccessibleSelection.hpp> #include <com/sun/star/lang/XServiceInfo.hpp> #include <cppuhelper/implbase3.hxx> -#include <vcl/vclptr.hxx> +#include <rtl/ref.hxx> #include <vector> 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 <com/sun/star/accessibility/AccessibleStateType.hpp> #include <com/sun/star/lang/IndexOutOfBoundsException.hpp> #include <cppuhelper/supportsservice.hxx> -#include <cppuhelper/typeprovider.hxx> #include <toolkit/helper/convert.hxx> #include <unotools/accessiblerelationsethelper.hxx> #include <unotools/accessiblestatesethelper.hxx> -#include <vcl/settings.hxx> -#include <vcl/svapp.hxx> 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 <ElementsDockingWindow.hxx> #include <smmod.hxx> -#include <comphelper/accessiblewrapper.hxx> -#include <comphelper/processfactory.hxx> -#include <comphelper/types.hxx> #include <com/sun/star/accessibility/AccessibleEventId.hpp> #include <com/sun/star/accessibility/AccessibleRole.hpp> #include <com/sun/star/accessibility/AccessibleStateType.hpp> #include <com/sun/star/lang/IndexOutOfBoundsException.hpp> #include <cppuhelper/supportsservice.hxx> -#include <cppuhelper/typeprovider.hxx> #include <o3tl/safeint.hxx> #include <toolkit/helper/convert.hxx> #include <unotools/accessiblerelationsethelper.hxx> #include <unotools/accessiblestatesethelper.hxx> #include <vcl/svapp.hxx> -#include <vcl/vclevent.hxx> 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 <sfx2/dispatch.hxx> #include <sfx2/sfxmodelfactory.hxx> #include <svl/stritem.hxx> -#include <svtools/colorcfg.hxx> #include <vcl/event.hxx> -#include <vcl/help.hxx> #include <vcl/settings.hxx> #include <vcl/uitest/eventdescription.hxx> #include <vcl/uitest/logger.hxx> 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 <svl/stritem.hxx> #include <sfx2/viewfrm.hxx> #include <svx/AccessibleTextHelper.hxx> -#include <svtools/colorcfg.hxx> #include <osl/diagnose.h> #include <edit.hxx> 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 <com/sun/star/packages/WrongPasswordException.hpp> #include <com/sun/star/packages/zip/ZipIOException.hpp> #include <com/sun/star/beans/PropertyAttribute.hpp> -#include <com/sun/star/container/XNameAccess.hpp> #include <com/sun/star/embed/ElementModes.hpp> #include <com/sun/star/uno/Any.h> #include <com/sun/star/task/XStatusIndicator.hpp> @@ -55,7 +54,6 @@ one go*/ #include <xmloff/DocumentSettingsContext.hxx> #include <xmloff/xmlnamespace.hxx> #include <xmloff/xmltoken.hxx> -#include <xmloff/namespacemap.hxx> #include <xmloff/xmluconv.hxx> #include <xmloff/xmlmetai.hxx> #include <svx/dialmgr.hxx> 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 <node.hxx> -#include <parse.hxx> #include <rect.hxx> #include <symbol.hxx> #include <smmod.hxx> -#include "mathtype.hxx" #include "tmpdevice.hxx" #include <visitors.hxx> -#include <starmathdatabase.hxx> -#include <comphelper/string.hxx> #include <tools/color.hxx> #include <tools/fract.hxx> #include <tools/gen.hxx> @@ -36,7 +32,6 @@ #include <vcl/outdev.hxx> #include <sal/log.hxx> #include <osl/diagnose.h> -#include <rtl/math.hxx> #include <cassert> #include <cstdlib> 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 <smmod.hxx> #include <cassert> -#include <cstdlib> 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 <com/sun/star/uno/XComponentContext.hpp> #include <sfx2/docfile.hxx> #include <unotools/mediadescriptor.hxx> -#include <sal/log.hxx> #include <sot/storage.hxx> #include <tools/diagnose_ex.h> 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 <svx/zoomctrl.hxx> #include <svx/zoomsliderctrl.hxx> #include <sfx2/docfac.hxx> -#include <svx/lboxctrl.hxx> #include <sfx2/app.hxx> #include <smdll.hxx> 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 <smmod.hxx> #include "cfgitem.hxx" #include <dialog.hxx> -#include <edit.hxx> #include <view.hxx> #include <smmod.hrc> #include <starmath.hrc> 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 <svtools/colorcfg.hxx> -#include <vcl/window.hxx> #include <sal/log.hxx> // 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 <vcl/commandevent.hxx> #include <vcl/event.hxx> #include <vcl/decoview.hxx> -#include <vcl/menu.hxx> #include <vcl/settings.hxx> #include <vcl/virdev.hxx> #include <sal/log.hxx> 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 <cursor.hxx> #include <cassert> -#include "mathtype.hxx" #include <starmathdatabase.hxx> // SmDefaultingVisitor |