From 0a840edcc19ad1b8bb1525717d91ce8ade0c0092 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 18 Nov 2016 10:10:48 +0200 Subject: includes should be at the top of the file not randomly scattered through the code found with something like: git ls-files *.cpp | xargs grep -Pzl "(?s){.*#include" Change-Id: I9c242fa4ef99e8677f2800d7ec9f16d16e488351 Reviewed-on: https://gerrit.libreoffice.org/30952 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sfx2/source/appl/app.cxx | 7 +++---- sfx2/source/appl/newhelp.hxx | 9 +++++---- sfx2/source/appl/shutdownicon.cxx | 2 +- sfx2/source/inc/partwnd.hxx | 7 ++++--- 4 files changed, 13 insertions(+), 12 deletions(-) (limited to 'sfx2') diff --git a/sfx2/source/appl/app.cxx b/sfx2/source/appl/app.cxx index 307e21873fd6..246d6854cea5 100644 --- a/sfx2/source/appl/app.cxx +++ b/sfx2/source/appl/app.cxx @@ -99,6 +99,9 @@ #include #include #include +#include +#include +#include "fwkhelper.hxx" using namespace ::com::sun::star; @@ -118,10 +121,6 @@ namespace : public rtl::Static {}; } -#include -#include -#include "fwkhelper.hxx" - SfxApplication* SfxApplication::Get() { return g_pSfxApplication; diff --git a/sfx2/source/appl/newhelp.hxx b/sfx2/source/appl/newhelp.hxx index f43929e676a0..4f80ffad97fb 100644 --- a/sfx2/source/appl/newhelp.hxx +++ b/sfx2/source/appl/newhelp.hxx @@ -24,10 +24,6 @@ #include #include -namespace com { namespace sun { namespace star { namespace awt { class XWindow; } } } } -namespace com { namespace sun { namespace star { namespace i18n { class XBreakIterator; } } } } -namespace com { namespace sun { namespace star { namespace text { class XTextRange; } } } } - #include #include #include @@ -44,6 +40,11 @@ namespace com { namespace sun { namespace star { namespace text { class XTextRan #include "srchdlg.hxx" +namespace com { namespace sun { namespace star { namespace awt { class XWindow; } } } } +namespace com { namespace sun { namespace star { namespace i18n { class XBreakIterator; } } } } +namespace com { namespace sun { namespace star { namespace text { class XTextRange; } } } } + + // ContentListBox_Impl --------------------------------------------------- class ContentListBox_Impl : public SvTreeListBox diff --git a/sfx2/source/appl/shutdownicon.cxx b/sfx2/source/appl/shutdownicon.cxx index d6326726688e..b1127a4880a7 100644 --- a/sfx2/source/appl/shutdownicon.cxx +++ b/sfx2/source/appl/shutdownicon.cxx @@ -55,6 +55,7 @@ #include #include #include +#include #include #include #include @@ -305,7 +306,6 @@ void ShutdownIcon::FromTemplate() } -#include OUString ShutdownIcon::GetResString( int id ) { ::SolarMutexGuard aGuard; diff --git a/sfx2/source/inc/partwnd.hxx b/sfx2/source/inc/partwnd.hxx index 07f873ce76da..487659efaac1 100644 --- a/sfx2/source/inc/partwnd.hxx +++ b/sfx2/source/inc/partwnd.hxx @@ -19,6 +19,10 @@ #ifndef INCLUDED_SFX2_SOURCE_INC_PARTWND_HXX #define INCLUDED_SFX2_SOURCE_INC_PARTWND_HXX +#include +#include + + namespace com { namespace sun @@ -33,9 +37,6 @@ namespace com } } -#include -#include - // forward --------------------------------------------------------------- // class SfxPartChildWnd_Impl ----------------------------------- -- cgit v1.2.3