summaryrefslogtreecommitdiff
path: root/connectivity
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-07-08 16:39:12 +0200
committerStephan Bergmann <sbergman@redhat.com>2016-07-08 16:47:31 +0200
commit8a75a6c105a67ee4604e4787773326ada5fb4679 (patch)
treeb8f718eecf438c618968c7874c346f0d3f9abe30 /connectivity
parent4aa7d9e63a86496d1538844c82165fd00a763f6b (diff)
loplugin:redundantcast: redundant static_casts in connectivity
Change-Id: I2428e27f04b9f967c21ea0dd29eff6ee63167ec3
Diffstat (limited to 'connectivity')
-rw-r--r--connectivity/source/drivers/evoab2/NResultSet.cxx4
-rw-r--r--connectivity/source/drivers/evoab2/NTables.cxx2
-rw-r--r--connectivity/source/drivers/jdbc/DatabaseMetaData.cxx2
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;