From e23d2be0ce41ea0a1f6d3d58d626a546c25cb516 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Sun, 10 Sep 2023 18:46:44 +0200 Subject: 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 --- connectivity/source/cpool/ZConnectionPool.cxx | 2 +- connectivity/source/drivers/mysqlc/mysqlc_driver.cxx | 5 ++--- connectivity/source/drivers/mysqlc/mysqlc_prepared_resultset.cxx | 6 ++---- 3 files changed, 5 insertions(+), 8 deletions(-) (limited to 'connectivity') diff --git a/connectivity/source/cpool/ZConnectionPool.cxx b/connectivity/source/cpool/ZConnectionPool.cxx index 7d4ea408d4b6..009de85b3f4b 100644 --- a/connectivity/source/cpool/ZConnectionPool.cxx +++ b/connectivity/source/cpool/ZConnectionPool.cxx @@ -24,6 +24,7 @@ #include "ZPoolCollection.hxx" #include #include +#include using namespace ::com::sun::star::uno; @@ -34,7 +35,6 @@ using namespace ::com::sun::star::container; using namespace ::osl; using namespace connectivity; -#include void SAL_CALL OPoolTimer::onShot() { diff --git a/connectivity/source/drivers/mysqlc/mysqlc_driver.cxx b/connectivity/source/drivers/mysqlc/mysqlc_driver.cxx index 37a14e822aff..79a514a57898 100644 --- a/connectivity/source/drivers/mysqlc/mysqlc_driver.cxx +++ b/connectivity/source/drivers/mysqlc/mysqlc_driver.cxx @@ -18,6 +18,8 @@ */ #include "mysqlc_driver.hxx" #include "mysqlc_connection.hxx" +#include +#include using namespace css::uno; using namespace css::lang; @@ -26,9 +28,6 @@ using namespace css::sdbc; using namespace css::sdbcx; using namespace connectivity::mysqlc; -#include -#include - MysqlCDriver::MysqlCDriver(const Reference& _rxFactory) : ODriver_BASE(m_aMutex) , m_xFactory(_rxFactory) diff --git a/connectivity/source/drivers/mysqlc/mysqlc_prepared_resultset.cxx b/connectivity/source/drivers/mysqlc/mysqlc_prepared_resultset.cxx index b2c7d31842c4..32d4915377e8 100644 --- a/connectivity/source/drivers/mysqlc/mysqlc_prepared_resultset.cxx +++ b/connectivity/source/drivers/mysqlc/mysqlc_prepared_resultset.cxx @@ -31,10 +31,10 @@ #include #include -using namespace rtl; - #include +#include +using namespace rtl; using namespace connectivity::mysqlc; using namespace connectivity; using namespace cppu; @@ -49,8 +49,6 @@ using namespace com::sun::star::util; using namespace ::comphelper; using ::osl::MutexGuard; -#include - namespace { std::type_index getTypeFromMysqlType(enum_field_types type) -- cgit v1.2.3