diff options
author | Arkadiy Illarionov <qarkai@gmail.com> | 2019-09-07 01:14:48 +0300 |
---|---|---|
committer | Arkadiy Illarionov <qarkai@gmail.com> | 2019-09-07 12:34:16 +0200 |
commit | c1e1806c9c01d2ac2f62f95dd79cbb2037bc87af (patch) | |
tree | dc20681b01b9ea4ae4f168786926e25f7f2776ec /connectivity/source | |
parent | b9b39acea7ec3867b0d911128148b03bf24a66ca (diff) |
tdf#39593 drop comphelper::getImplementation
Replace with comphelper::getUnoTunnelImplementation.
Change-Id: I96277aa9c17532ea6e2781dbc3305b2dbaa4e5c2
Reviewed-on: https://gerrit.libreoffice.org/78733
Tested-by: Jenkins
Reviewed-by: Arkadiy Illarionov <qarkai@gmail.com>
Diffstat (limited to 'connectivity/source')
-rw-r--r-- | connectivity/source/drivers/ado/AColumns.cxx | 3 | ||||
-rw-r--r-- | connectivity/source/drivers/ado/AGroups.cxx | 3 | ||||
-rw-r--r-- | connectivity/source/drivers/ado/AIndexes.cxx | 3 | ||||
-rw-r--r-- | connectivity/source/drivers/ado/AKeys.cxx | 3 | ||||
-rw-r--r-- | connectivity/source/drivers/ado/ATable.cxx | 2 | ||||
-rw-r--r-- | connectivity/source/drivers/ado/ATables.cxx | 3 | ||||
-rw-r--r-- | connectivity/source/drivers/ado/AUsers.cxx | 3 | ||||
-rw-r--r-- | connectivity/source/drivers/ado/AViews.cxx | 3 |
8 files changed, 15 insertions, 8 deletions
diff --git a/connectivity/source/drivers/ado/AColumns.cxx b/connectivity/source/drivers/ado/AColumns.cxx index ef010cfb4062..e9dc7720fc99 100644 --- a/connectivity/source/drivers/ado/AColumns.cxx +++ b/connectivity/source/drivers/ado/AColumns.cxx @@ -26,6 +26,7 @@ #include <com/sun/star/sdbc/DataType.hpp> #include <com/sun/star/sdbc/ColumnValue.hpp> #include <comphelper/property.hxx> +#include <comphelper/servicehelper.hxx> #include <comphelper/types.hxx> #include <connectivity/dbexception.hxx> #include <algorithm> @@ -59,7 +60,7 @@ Reference< XPropertySet > OColumns::createDescriptor() // XAppend sdbcx::ObjectType OColumns::appendObject( const OUString&, const Reference< XPropertySet >& descriptor ) { - OAdoColumn* pColumn = getImplementation<OAdoColumn>( descriptor ); + OAdoColumn* pColumn = getUnoTunnelImplementation<OAdoColumn>( descriptor ); Reference< XPropertySet > xColumn; if ( pColumn == nullptr ) { diff --git a/connectivity/source/drivers/ado/AGroups.cxx b/connectivity/source/drivers/ado/AGroups.cxx index 506aead14f7d..211f34f6bebe 100644 --- a/connectivity/source/drivers/ado/AGroups.cxx +++ b/connectivity/source/drivers/ado/AGroups.cxx @@ -25,6 +25,7 @@ #include <com/sun/star/sdbc/XResultSet.hpp> #include <connectivity/sdbcx/IRefreshable.hxx> #include <TConnection.hxx> +#include <comphelper/servicehelper.hxx> #include <comphelper/types.hxx> #include <connectivity/dbexception.hxx> #include <strings.hrc> @@ -57,7 +58,7 @@ Reference< XPropertySet > OGroups::createDescriptor() // XAppend sdbcx::ObjectType OGroups::appendObject( const OUString& _rForName, const Reference< XPropertySet >& descriptor ) { - OAdoGroup* pGroup = getImplementation<OAdoGroup>(descriptor); + OAdoGroup* pGroup = getUnoTunnelImplementation<OAdoGroup>(descriptor); if ( pGroup == nullptr ) m_pCatalog->getConnection()->throwGenericSQLException( STR_INVALID_GROUP_DESCRIPTOR_ERROR,static_cast<XTypeProvider*>(this) ); diff --git a/connectivity/source/drivers/ado/AIndexes.cxx b/connectivity/source/drivers/ado/AIndexes.cxx index 46cd1c1a4b86..616cd863ada4 100644 --- a/connectivity/source/drivers/ado/AIndexes.cxx +++ b/connectivity/source/drivers/ado/AIndexes.cxx @@ -24,6 +24,7 @@ #include <com/sun/star/sdbc/XResultSet.hpp> #include <com/sun/star/sdbc/IndexType.hpp> #include <TConnection.hxx> +#include <comphelper/servicehelper.hxx> #include <comphelper/types.hxx> #include <connectivity/dbexception.hxx> #include <strings.hrc> @@ -57,7 +58,7 @@ Reference< XPropertySet > OIndexes::createDescriptor() // XAppend sdbcx::ObjectType OIndexes::appendObject( const OUString& _rForName, const Reference< XPropertySet >& descriptor ) { - OAdoIndex* pIndex = getImplementation<OAdoIndex>(descriptor); + OAdoIndex* pIndex = getUnoTunnelImplementation<OAdoIndex>(descriptor); if ( pIndex == nullptr ) m_pConnection->throwGenericSQLException( STR_INVALID_INDEX_DESCRIPTOR_ERROR,static_cast<XTypeProvider*>(this) ); diff --git a/connectivity/source/drivers/ado/AKeys.cxx b/connectivity/source/drivers/ado/AKeys.cxx index e306f918a726..19027e79ffb6 100644 --- a/connectivity/source/drivers/ado/AKeys.cxx +++ b/connectivity/source/drivers/ado/AKeys.cxx @@ -24,6 +24,7 @@ #include <com/sun/star/sdbcx/KeyType.hpp> #include <com/sun/star/sdbc/KeyRule.hpp> #include <ado/AConnection.hxx> +#include <comphelper/servicehelper.hxx> #include <comphelper/types.hxx> #include <ado/Awrapado.hxx> #include <connectivity/dbexception.hxx> @@ -57,7 +58,7 @@ Reference< XPropertySet > OKeys::createDescriptor() // XAppend sdbcx::ObjectType OKeys::appendObject( const OUString&, const Reference< XPropertySet >& descriptor ) { - OAdoKey* pKey = getImplementation<OAdoKey>( descriptor ); + OAdoKey* pKey = getUnoTunnelImplementation<OAdoKey>( descriptor ); if ( pKey == nullptr) m_pConnection->throwGenericSQLException( STR_INVALID_KEY_DESCRIPTOR_ERROR,static_cast<XTypeProvider*>(this) ); diff --git a/connectivity/source/drivers/ado/ATable.cxx b/connectivity/source/drivers/ado/ATable.cxx index 807dbb19055c..209255598476 100644 --- a/connectivity/source/drivers/ado/ATable.cxx +++ b/connectivity/source/drivers/ado/ATable.cxx @@ -164,7 +164,7 @@ void SAL_CALL OAdoTable::alterColumnByName( const OUString& colName, const Refer checkDisposed(OTableDescriptor_BASE_TYPEDEF::rBHelper.bDisposed); bool bError = true; - OAdoColumn* pColumn = ::comphelper::getImplementation<OAdoColumn>(descriptor); + OAdoColumn* pColumn = comphelper::getUnoTunnelImplementation<OAdoColumn>(descriptor); if(pColumn != nullptr) { WpADOColumns aColumns = m_aTable.get_Columns(); diff --git a/connectivity/source/drivers/ado/ATables.cxx b/connectivity/source/drivers/ado/ATables.cxx index 75fbaba3b710..9ce87634e425 100644 --- a/connectivity/source/drivers/ado/ATables.cxx +++ b/connectivity/source/drivers/ado/ATables.cxx @@ -28,6 +28,7 @@ #include <ado/AConnection.hxx> #include <ado/Awrapado.hxx> #include <TConnection.hxx> +#include <comphelper/servicehelper.hxx> #include <comphelper/types.hxx> #include <cppuhelper/interfacecontainer.h> #include <connectivity/dbexception.hxx> @@ -64,7 +65,7 @@ Reference< XPropertySet > OTables::createDescriptor() // XAppend sdbcx::ObjectType OTables::appendObject( const OUString&, const Reference< XPropertySet >& descriptor ) { - OAdoTable* pTable = getImplementation<OAdoTable>( descriptor ); + OAdoTable* pTable = getUnoTunnelImplementation<OAdoTable>( descriptor ); if ( pTable == nullptr ) m_pCatalog->getConnection()->throwGenericSQLException( STR_INVALID_TABLE_DESCRIPTOR_ERROR,static_cast<XTypeProvider*>(this) ); diff --git a/connectivity/source/drivers/ado/AUsers.cxx b/connectivity/source/drivers/ado/AUsers.cxx index c7e3d6632bb0..9c39ade72749 100644 --- a/connectivity/source/drivers/ado/AUsers.cxx +++ b/connectivity/source/drivers/ado/AUsers.cxx @@ -24,6 +24,7 @@ #include <com/sun/star/sdbc/XRow.hpp> #include <com/sun/star/sdbc/XResultSet.hpp> #include <connectivity/sdbcx/IRefreshable.hxx> +#include <comphelper/servicehelper.hxx> #include <comphelper/types.hxx> #include <connectivity/dbexception.hxx> #include <strings.hrc> @@ -55,7 +56,7 @@ Reference< XPropertySet > OUsers::createDescriptor() // XAppend sdbcx::ObjectType OUsers::appendObject( const OUString& _rForName, const Reference< XPropertySet >& descriptor ) { - OUserExtend* pUser = getImplementation<OUserExtend>( descriptor ); + OUserExtend* pUser = getUnoTunnelImplementation<OUserExtend>( descriptor ); if ( pUser == nullptr ) m_pCatalog->getConnection()->throwGenericSQLException( STR_INVALID_USER_DESCRIPTOR_ERROR,static_cast<XTypeProvider*>(this) ); diff --git a/connectivity/source/drivers/ado/AViews.cxx b/connectivity/source/drivers/ado/AViews.cxx index 01744952f023..a778f6cc3f20 100644 --- a/connectivity/source/drivers/ado/AViews.cxx +++ b/connectivity/source/drivers/ado/AViews.cxx @@ -24,6 +24,7 @@ #include <ado/AConnection.hxx> #include <ado/Awrapado.hxx> #include <TConnection.hxx> +#include <comphelper/servicehelper.hxx> #include <comphelper/types.hxx> #include <connectivity/dbexception.hxx> #include <strings.hrc> @@ -59,7 +60,7 @@ Reference< XPropertySet > OViews::createDescriptor() // XAppend sdbcx::ObjectType OViews::appendObject( const OUString& _rForName, const Reference< XPropertySet >& descriptor ) { - OAdoView* pView = getImplementation<OAdoView>( descriptor ); + OAdoView* pView = getUnoTunnelImplementation<OAdoView>( descriptor ); if ( pView == nullptr ) m_pCatalog->getConnection()->throwGenericSQLException( STR_INVALID_VIEW_DESCRIPTOR_ERROR,static_cast<XTypeProvider*>(this) ); |