diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2023-09-10 18:46:44 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-09-10 20:43:05 +0200 |
commit | e23d2be0ce41ea0a1f6d3d58d626a546c25cb516 (patch) | |
tree | 5a7704f14398859252a666dd607d47af6040705b /basic | |
parent | 76ea287c040dcfc2fe71b0588e1701cfe1ae6940 (diff) |
using decls should come after #include
Change-Id: I058551e87bca42adede860f6f299b0f7ae2af3b5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/156798
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'basic')
-rw-r--r-- | basic/source/runtime/iosys.cxx | 2 | ||||
-rw-r--r-- | basic/source/runtime/methods.cxx | 14 |
2 files changed, 7 insertions, 9 deletions
diff --git a/basic/source/runtime/iosys.cxx b/basic/source/runtime/iosys.cxx index 705905acfce7..be056aaf61e8 100644 --- a/basic/source/runtime/iosys.cxx +++ b/basic/source/runtime/iosys.cxx @@ -37,6 +37,7 @@ #include <com/sun/star/io/XOutputStream.hpp> #include <com/sun/star/io/XStream.hpp> #include <com/sun/star/io/XSeekable.hpp> +#include <iosys.hxx> using namespace com::sun::star::uno; using namespace com::sun::star::lang; @@ -44,7 +45,6 @@ using namespace com::sun::star::ucb; using namespace com::sun::star::io; using namespace com::sun::star::bridge; -#include <iosys.hxx> namespace { diff --git a/basic/source/runtime/methods.cxx b/basic/source/runtime/methods.cxx index 0c01e31126f1..8bfb362f98c9 100644 --- a/basic/source/runtime/methods.cxx +++ b/basic/source/runtime/methods.cxx @@ -74,14 +74,6 @@ #include <unotools/textsearch.hxx> #include <svl/numformat.hxx> - - -using namespace comphelper; -using namespace osl; -using namespace com::sun::star; -using namespace com::sun::star::lang; -using namespace com::sun::star::uno; - #include <date.hxx> #include <sbstdobj.hxx> #include <rtlproto.hxx> @@ -111,6 +103,12 @@ using namespace com::sun::star::uno; #include <vcl/TypeSerializer.hxx> +using namespace comphelper; +using namespace osl; +using namespace com::sun::star; +using namespace com::sun::star::lang; +using namespace com::sun::star::uno; + static sal_Int32 GetDayDiff(const Date& rDate) { return rDate - Date(1899'12'30); } #if HAVE_FEATURE_SCRIPTING |