diff options
Diffstat (limited to 'connectivity/source')
-rw-r--r-- | connectivity/source/drivers/evoab2/NResultSet.cxx | 4 | ||||
-rw-r--r-- | connectivity/source/drivers/evoab2/NTables.cxx | 2 | ||||
-rw-r--r-- | connectivity/source/drivers/jdbc/DatabaseMetaData.cxx | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/connectivity/source/drivers/evoab2/NResultSet.cxx b/connectivity/source/drivers/evoab2/NResultSet.cxx index 58ea03305025..0ccc1ec5123d 100644 --- a/connectivity/source/drivers/evoab2/NResultSet.cxx +++ b/connectivity/source/drivers/evoab2/NResultSet.cxx @@ -302,8 +302,8 @@ getValue( EContact* pContact, sal_Int32 nColumnNum, GType nType, GValue* pStackV extern "C" int CompareContacts( gconstpointer _lhs, gconstpointer _rhs, gpointer _userData ) { - EContact* lhs = static_cast< EContact* >( const_cast< gpointer >( _lhs ) ); - EContact* rhs = static_cast< EContact* >( const_cast< gpointer >( _rhs ) ); + EContact* lhs = const_cast< gpointer >( _lhs ); + EContact* rhs = const_cast< gpointer >( _rhs ); GValue aLhsValue = { 0, { { 0 } } }; GValue aRhsValue = { 0, { { 0 } } }; diff --git a/connectivity/source/drivers/evoab2/NTables.cxx b/connectivity/source/drivers/evoab2/NTables.cxx index 67a698374843..163b721eb7ff 100644 --- a/connectivity/source/drivers/evoab2/NTables.cxx +++ b/connectivity/source/drivers/evoab2/NTables.cxx @@ -61,7 +61,7 @@ ObjectType OEvoabTables::createObject(const OUString& aName) { OEvoabTable* pRet = new OEvoabTable( this, - static_cast<OEvoabConnection*>(static_cast<OEvoabCatalog&>(m_rParent).getConnection()), + static_cast<OEvoabCatalog&>(m_rParent).getConnection(), aName, xRow->getString(4), xRow->getString(5), diff --git a/connectivity/source/drivers/jdbc/DatabaseMetaData.cxx b/connectivity/source/drivers/jdbc/DatabaseMetaData.cxx index 90a7952c3561..4b6ab474c5a8 100644 --- a/connectivity/source/drivers/jdbc/DatabaseMetaData.cxx +++ b/connectivity/source/drivers/jdbc/DatabaseMetaData.cxx @@ -124,7 +124,7 @@ Reference< XResultSet > SAL_CALL java_sql_DatabaseMetaData::getTables( sal_Int32 typeFilterCount = _types.getLength(); if ( typeFilterCount ) { - jobjectArray pObjArray = static_cast< jobjectArray >( t.pEnv->NewObjectArray( (jsize)typeFilterCount, java_lang_String::st_getMyClass(), nullptr ) ); + jobjectArray pObjArray = t.pEnv->NewObjectArray( (jsize)typeFilterCount, java_lang_String::st_getMyClass(), nullptr ); OSL_VERIFY( !isExceptionOccurred( t.pEnv, true ) ); const OUString* typeFilter = _types.getConstArray(); bool bIncludeAllTypes = false; |