diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-05-11 12:49:15 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-05-11 12:49:15 +0200 |
commit | 3394622e05d5db1c755fbf2a34e2b6ea89f26535 (patch) | |
tree | cb7afa7433a5d908f90c4c28e43001f8e8dd8d35 /connectivity | |
parent | 6646474a8d640aade743c70c12726a6aeb65eee4 (diff) |
loplugin:cstylecast: nop between pointer types of exactly same spelling
Change-Id: I74bf1042cc5a2c4027023f1fa32248a50f5d2274
Diffstat (limited to 'connectivity')
5 files changed, 7 insertions, 7 deletions
diff --git a/connectivity/source/drivers/evoab2/NDatabaseMetaData.cxx b/connectivity/source/drivers/evoab2/NDatabaseMetaData.cxx index 35f84fec6bea..96d0450e0ded 100644 --- a/connectivity/source/drivers/evoab2/NDatabaseMetaData.cxx +++ b/connectivity/source/drivers/evoab2/NDatabaseMetaData.cxx @@ -162,7 +162,7 @@ namespace connectivity sal_Int32 nType = G_TYPE_STRING; if ( nCol < nFields ) - return ((GParamSpec *)pFields[nCol]->pField)->value_type; + return (pFields[nCol]->pField)->value_type; return nType; } diff --git a/connectivity/source/drivers/evoab2/NResultSet.cxx b/connectivity/source/drivers/evoab2/NResultSet.cxx index 077bf1690b91..d7dfd273ce6f 100644 --- a/connectivity/source/drivers/evoab2/NResultSet.cxx +++ b/connectivity/source/drivers/evoab2/NResultSet.cxx @@ -277,7 +277,7 @@ getValue( EContact* pContact, sal_Int32 nColumnNum, GType nType, GValue* pStackV const SplitEvoColumns* evo_addr( get_evo_addr() ); for (int i=0;i<OTHER_ZIP;i++) { - if (0 == strcmp (g_param_spec_get_name ((GParamSpec *)pSpec), evo_addr[i].pColumnName)) + if (0 == strcmp (g_param_spec_get_name (pSpec), evo_addr[i].pColumnName)) { _out_rWasNull = handleSplitAddress( pContact, pStackValue, evo_addr[i].value ); return true; @@ -287,7 +287,7 @@ getValue( EContact* pContact, sal_Int32 nColumnNum, GType nType, GValue* pStackV else { g_object_get_property( G_OBJECT (pContact), - g_param_spec_get_name ((GParamSpec *) pSpec), + g_param_spec_get_name (pSpec), pStackValue ); if ( G_VALUE_TYPE( pStackValue ) != nType ) { diff --git a/connectivity/source/drivers/evoab2/NResultSetMetaData.cxx b/connectivity/source/drivers/evoab2/NResultSetMetaData.cxx index 8e6a0746383c..6da5fea9fc01 100644 --- a/connectivity/source/drivers/evoab2/NResultSetMetaData.cxx +++ b/connectivity/source/drivers/evoab2/NResultSetMetaData.cxx @@ -110,7 +110,7 @@ OUString SAL_CALL OEvoabResultSetMetaData::getColumnLabel( sal_Int32 nColumnNum OUString aLabel; if( pSpec ) - aLabel = OStringToOUString( g_param_spec_get_nick( (GParamSpec *) pSpec ), + aLabel = OStringToOUString( g_param_spec_get_nick( pSpec ), RTL_TEXTENCODING_UTF8 ); return aLabel; } diff --git a/connectivity/source/drivers/jdbc/InputStream.cxx b/connectivity/source/drivers/jdbc/InputStream.cxx index b9e0d146e2f4..0443bcd67477 100644 --- a/connectivity/source/drivers/jdbc/InputStream.cxx +++ b/connectivity/source/drivers/jdbc/InputStream.cxx @@ -101,7 +101,7 @@ sal_Int32 SAL_CALL java_io_InputStream::readBytes( ::com::sun::star::uno::Sequen aData.realloc ( out ); memcpy(aData.getArray(),t.pEnv->GetByteArrayElements(pByteArray,&p),out); } - t.pEnv->DeleteLocalRef((jbyteArray)pByteArray); + t.pEnv->DeleteLocalRef(pByteArray); } //t.pEnv return out; } diff --git a/connectivity/source/drivers/jdbc/tools.cxx b/connectivity/source/drivers/jdbc/tools.cxx index 7ed32d4a8ae6..54fa59c5215b 100644 --- a/connectivity/source/drivers/jdbc/tools.cxx +++ b/connectivity/source/drivers/jdbc/tools.cxx @@ -223,7 +223,7 @@ jobject connectivity::createByteInputStream(const ::com::sun::star::uno::Referen jboolean p = sal_False; memcpy(t.pEnv->GetByteArrayElements(pByteArray,&p),aData.getArray(),aData.getLength()); jobject out = t.pEnv->NewObject( clazz, mID,pByteArray); - t.pEnv->DeleteLocalRef((jbyteArray)pByteArray); + t.pEnv->DeleteLocalRef(pByteArray); return out; } @@ -250,7 +250,7 @@ jobject connectivity::createCharArrayReader(const ::com::sun::star::uno::Referen jboolean p = sal_False; memcpy(t.pEnv->GetCharArrayElements(pCharArray,&p),aData.getArray(),aData.getLength()); jobject out = t.pEnv->NewObject( clazz, mID,pCharArray); - t.pEnv->DeleteLocalRef((jcharArray)pCharArray); + t.pEnv->DeleteLocalRef(pCharArray); return out; } |