summaryrefslogtreecommitdiff
path: root/connectivity
diff options
context:
space:
mode:
authorGabor Kelemen <kelemen.gabor2@nisz.hu>2020-10-31 14:32:20 +0100
committerMiklos Vajna <vmiklos@collabora.com>2020-11-06 08:18:45 +0100
commit7bdbb50a507df4c419f68d2ae453dd482267f168 (patch)
treec9797c8f343108fedad6f900b1952b69570b517f /connectivity
parent6e921467c411718793422a43fb3e3060fdeaeda9 (diff)
tdf#42949 Fix new IWYU warnings in directories c*
Found with bin/find-unneeded-includes Only removal proposals are dealt with here. Change-Id: Iac1e7802dbe1efa01c2befdd10406231788d4fc1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105315 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'connectivity')
-rw-r--r--connectivity/IwyuFilter_connectivity.yaml9
-rw-r--r--connectivity/inc/ParameterCont.hxx1
-rw-r--r--connectivity/inc/TIndex.hxx1
-rw-r--r--connectivity/inc/TIndexColumns.hxx1
-rw-r--r--connectivity/inc/TKey.hxx1
-rw-r--r--connectivity/inc/TKeyColumns.hxx1
-rw-r--r--connectivity/inc/sdbcx/VKeyColumn.hxx1
-rw-r--r--connectivity/source/commontools/FDatabaseMetaDataResultSet.cxx2
-rw-r--r--connectivity/source/drivers/mysqlc/mysqlc_statement.cxx2
-rw-r--r--connectivity/source/drivers/postgresql/pq_connection.cxx5
-rw-r--r--connectivity/source/inc/hsqldb/HDriver.hxx1
-rw-r--r--connectivity/source/inc/java/sql/Driver.hxx1
-rw-r--r--connectivity/source/inc/mysql/YDriver.hxx1
-rw-r--r--connectivity/source/inc/odbc/OBoundParam.hxx1
-rw-r--r--connectivity/source/manager/mdrivermanager.hxx2
15 files changed, 10 insertions, 20 deletions
diff --git a/connectivity/IwyuFilter_connectivity.yaml b/connectivity/IwyuFilter_connectivity.yaml
index 70d68ab79554..94f4f1d6c1ff 100644
--- a/connectivity/IwyuFilter_connectivity.yaml
+++ b/connectivity/IwyuFilter_connectivity.yaml
@@ -18,6 +18,9 @@ excludelist:
connectivity/source/commontools/dbexception.cxx:
# Actually used
- com/sun/star/sdb/SQLErrorEvent.hpp
+ connectivity/source/commontools/dbtools2.cxx:
+ # Actually used
+ - com/sun/star/sdbc/XDataSource.hpp
connectivity/source/commontools/paramwrapper.cxx:
# Actually used
- com/sun/star/sdbc/XParameters.hpp
@@ -45,6 +48,9 @@ excludelist:
connectivity/source/drivers/file/FCatalog.cxx:
# Actually used
- com/sun/star/sdbc/XRow.hpp
+ connectivity/source/drivers/file/FNumericFunctions.cxx:
+ # Needed for rtl::math::round
+ - rtl/math.hxx
connectivity/source/drivers/hsqldb/HStorageAccess.cxx:
# Needed for HSQLDB_DBG
- accesslog.hxx
@@ -65,6 +71,9 @@ excludelist:
connectivity/source/drivers/mork/MDriver.cxx:
# Actually used
- com/sun/star/uno/XComponentContext.hpp
+ connectivity/source/drivers/mork/MColumnAlias.cxx:
+ # Needed for indirect dtor
+ - com/sun/star/container/XHierarchicalNameAccess.hpp
connectivity/source/drivers/mysql_jdbc/YDriver.cxx:
# Actually used
- com/sun/star/uno/XComponentContext.hpp
diff --git a/connectivity/inc/ParameterCont.hxx b/connectivity/inc/ParameterCont.hxx
index 848cec78e4e0..9e479db92064 100644
--- a/connectivity/inc/ParameterCont.hxx
+++ b/connectivity/inc/ParameterCont.hxx
@@ -20,7 +20,6 @@
#include <com/sun/star/sdb/XInteractionSupplyParameters.hpp>
#include <comphelper/interaction.hxx>
-#include <connectivity/dbtoolsdllapi.hxx>
namespace dbtools
{
diff --git a/connectivity/inc/TIndex.hxx b/connectivity/inc/TIndex.hxx
index 1ac2f5c4f9f2..7523b787e4b0 100644
--- a/connectivity/inc/TIndex.hxx
+++ b/connectivity/inc/TIndex.hxx
@@ -19,7 +19,6 @@
#pragma once
-#include <connectivity/dbtoolsdllapi.hxx>
#include "sdbcx/VIndex.hxx"
namespace connectivity
diff --git a/connectivity/inc/TIndexColumns.hxx b/connectivity/inc/TIndexColumns.hxx
index aa5687afc212..6d02c445eda2 100644
--- a/connectivity/inc/TIndexColumns.hxx
+++ b/connectivity/inc/TIndexColumns.hxx
@@ -20,7 +20,6 @@
#pragma once
#include <connectivity/sdbcx/VCollection.hxx>
-#include <connectivity/dbtoolsdllapi.hxx>
namespace connectivity
{
diff --git a/connectivity/inc/TKey.hxx b/connectivity/inc/TKey.hxx
index a4d1d92ff2cc..d7c762e308e1 100644
--- a/connectivity/inc/TKey.hxx
+++ b/connectivity/inc/TKey.hxx
@@ -19,7 +19,6 @@
#pragma once
-#include <connectivity/dbtoolsdllapi.hxx>
#include "sdbcx/VKey.hxx"
namespace connectivity
diff --git a/connectivity/inc/TKeyColumns.hxx b/connectivity/inc/TKeyColumns.hxx
index c40cd1cd7a61..19510e4965e9 100644
--- a/connectivity/inc/TKeyColumns.hxx
+++ b/connectivity/inc/TKeyColumns.hxx
@@ -20,7 +20,6 @@
#pragma once
#include <connectivity/sdbcx/VCollection.hxx>
-#include <connectivity/dbtoolsdllapi.hxx>
namespace connectivity
{
diff --git a/connectivity/inc/sdbcx/VKeyColumn.hxx b/connectivity/inc/sdbcx/VKeyColumn.hxx
index 2a1b50403982..5adf3e0aab9d 100644
--- a/connectivity/inc/sdbcx/VKeyColumn.hxx
+++ b/connectivity/inc/sdbcx/VKeyColumn.hxx
@@ -19,7 +19,6 @@
#pragma once
-#include <connectivity/dbtoolsdllapi.hxx>
#include <connectivity/sdbcx/VColumn.hxx>
namespace connectivity::sdbcx
diff --git a/connectivity/source/commontools/FDatabaseMetaDataResultSet.cxx b/connectivity/source/commontools/FDatabaseMetaDataResultSet.cxx
index ffc0feb75a8b..24be4d72a6ce 100644
--- a/connectivity/source/commontools/FDatabaseMetaDataResultSet.cxx
+++ b/connectivity/source/commontools/FDatabaseMetaDataResultSet.cxx
@@ -25,8 +25,6 @@
#include <com/sun/star/beans/PropertyAttribute.hpp>
#include <cppuhelper/typeprovider.hxx>
#include <comphelper/sequence.hxx>
-#include <cppuhelper/factory.hxx>
-#include <cppuhelper/implementationentry.hxx>
#include <cppuhelper/supportsservice.hxx>
#include <connectivity/dbexception.hxx>
#include <o3tl/unreachable.hxx>
diff --git a/connectivity/source/drivers/mysqlc/mysqlc_statement.cxx b/connectivity/source/drivers/mysqlc/mysqlc_statement.cxx
index 0082f96b61d1..5e07982773ce 100644
--- a/connectivity/source/drivers/mysqlc/mysqlc_statement.cxx
+++ b/connectivity/source/drivers/mysqlc/mysqlc_statement.cxx
@@ -18,7 +18,6 @@
*/
#include <sal/config.h>
-#include <sal/log.hxx>
#include "mysqlc_connection.hxx"
#include "mysqlc_propertyids.hxx"
@@ -27,7 +26,6 @@
#include "mysqlc_general.hxx"
#include <cppuhelper/typeprovider.hxx>
-#include <cppuhelper/queryinterface.hxx>
#include <cppuhelper/supportsservice.hxx>
using namespace connectivity::mysqlc;
diff --git a/connectivity/source/drivers/postgresql/pq_connection.cxx b/connectivity/source/drivers/postgresql/pq_connection.cxx
index 31dbe09d85d6..d9889dea8091 100644
--- a/connectivity/source/drivers/postgresql/pq_connection.cxx
+++ b/connectivity/source/drivers/postgresql/pq_connection.cxx
@@ -35,7 +35,6 @@
************************************************************************/
#include <vector>
-#include <time.h>
#include <string.h>
#include <memory>
@@ -49,12 +48,8 @@
#include "pq_xusers.hxx"
#include <rtl/uuid.h>
-#include <rtl/bootstrap.hxx>
#include <sal/log.hxx>
-#include <o3tl/enumarray.hxx>
-#include <osl/module.h>
-#include <cppuhelper/implementationentry.hxx>
#include <cppuhelper/implbase.hxx>
#include <com/sun/star/beans/PropertyValue.hpp>
diff --git a/connectivity/source/inc/hsqldb/HDriver.hxx b/connectivity/source/inc/hsqldb/HDriver.hxx
index 58f626901706..9727d38cb3b0 100644
--- a/connectivity/source/inc/hsqldb/HDriver.hxx
+++ b/connectivity/source/inc/hsqldb/HDriver.hxx
@@ -23,7 +23,6 @@
#include <com/sun/star/sdbcx/XDataDefinitionSupplier.hpp>
#include <com/sun/star/sdbcx/XCreateCatalog.hpp>
#include <com/sun/star/embed/XTransactionListener.hpp>
-#include <com/sun/star/lang/XMultiServiceFactory.hpp>
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <com/sun/star/uno/XComponentContext.hpp>
#include <cppuhelper/compbase.hxx>
diff --git a/connectivity/source/inc/java/sql/Driver.hxx b/connectivity/source/inc/java/sql/Driver.hxx
index 3deba1b9887d..2fd49b252bdc 100644
--- a/connectivity/source/inc/java/sql/Driver.hxx
+++ b/connectivity/source/inc/java/sql/Driver.hxx
@@ -22,7 +22,6 @@
#include <com/sun/star/sdbc/XDriver.hpp>
#include <cppuhelper/implbase.hxx>
-#include <com/sun/star/lang/XMultiServiceFactory.hpp>
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <comphelper/logging.hxx>
diff --git a/connectivity/source/inc/mysql/YDriver.hxx b/connectivity/source/inc/mysql/YDriver.hxx
index f4065dcc7fb0..545e9dde05fa 100644
--- a/connectivity/source/inc/mysql/YDriver.hxx
+++ b/connectivity/source/inc/mysql/YDriver.hxx
@@ -25,7 +25,6 @@
#include <com/sun/star/sdbc/XDriver.hpp>
#include <com/sun/star/sdbcx/XDataDefinitionSupplier.hpp>
-#include <com/sun/star/lang/XMultiServiceFactory.hpp>
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <com/sun/star/uno/XComponentContext.hpp>
#include <cppuhelper/compbase.hxx>
diff --git a/connectivity/source/inc/odbc/OBoundParam.hxx b/connectivity/source/inc/odbc/OBoundParam.hxx
index 1e05a61b0193..5765aad01523 100644
--- a/connectivity/source/inc/odbc/OBoundParam.hxx
+++ b/connectivity/source/inc/odbc/OBoundParam.hxx
@@ -22,6 +22,7 @@
#include <com/sun/star/io/XInputStream.hpp>
#include <com/sun/star/sdbc/DataType.hpp>
#include <odbc/odbcbasedllapi.hxx>
+#include <connectivity/odbc.hxx>
namespace connectivity::odbc
{
diff --git a/connectivity/source/manager/mdrivermanager.hxx b/connectivity/source/manager/mdrivermanager.hxx
index 09ccd11e05c3..ec72df370dd4 100644
--- a/connectivity/source/manager/mdrivermanager.hxx
+++ b/connectivity/source/manager/mdrivermanager.hxx
@@ -26,7 +26,6 @@
#include <vector>
#include <com/sun/star/sdbc/XDriverManager2.hpp>
-#include <com/sun/star/lang/XMultiServiceFactory.hpp>
#include <com/sun/star/uno/XNamingService.hpp>
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <com/sun/star/lang/XSingleComponentFactory.hpp>
@@ -34,7 +33,6 @@
#include <cppuhelper/basemutex.hxx>
#include <cppuhelper/compbase.hxx>
#include <comphelper/logging.hxx>
-#include <osl/mutex.hxx>
#include <connectivity/DriversConfig.hxx>
namespace drivermanager