diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-06-08 16:23:57 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-06-08 16:23:57 +0200 |
commit | f1b0eec9d3b3511e4c9381ad1f486f51772c852c (patch) | |
tree | 5a3873f943a6fd8d07618cbc3a3018583a66d178 /connectivity/source/drivers/odbc/OTools.cxx | |
parent | 66a0a3726adc17f1f5378c4c6de00bb930a370d5 (diff) |
loplugin:cstylecast: deal with remaining pointer casts
Change-Id: I8c3f4d39629bbfee91402bddfe27b4d104c524c0
Diffstat (limited to 'connectivity/source/drivers/odbc/OTools.cxx')
-rw-r--r-- | connectivity/source/drivers/odbc/OTools.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/connectivity/source/drivers/odbc/OTools.cxx b/connectivity/source/drivers/odbc/OTools.cxx index db5eb179c4d0..f92f3df1b79d 100644 --- a/connectivity/source/drivers/odbc/OTools.cxx +++ b/connectivity/source/drivers/odbc/OTools.cxx @@ -198,7 +198,7 @@ void OTools::bindValue( OConnection* _pConnection, _nMaxLen = (SQLSMALLINT)aString.getLength(); // Pointer on Char* - _pData = (void*)aString.getStr(); + _pData = const_cast<char *>(aString.getStr()); } break; case SQL_BIGINT: *static_cast<sal_Int64*>(_pData) = *static_cast<sal_Int64 const *>(_pValue); @@ -212,7 +212,7 @@ void OTools::bindValue( OConnection* _pConnection, *pLen = _nMaxLen; *static_cast<OString*>(_pData) = aString; // Pointer on Char* - _pData = (void*)static_cast<OString*>(_pData)->getStr(); + _pData = const_cast<char *>(static_cast<OString*>(_pData)->getStr()); } break; case SQL_BIT: case SQL_TINYINT: @@ -240,7 +240,7 @@ void OTools::bindValue( OConnection* _pConnection, case SQL_BINARY: case SQL_VARBINARY: { - _pData = (void*)static_cast<const ::com::sun::star::uno::Sequence< sal_Int8 > *>(_pValue)->getConstArray(); + _pData = const_cast<sal_Int8 *>(static_cast<const ::com::sun::star::uno::Sequence< sal_Int8 > *>(_pValue)->getConstArray()); *pLen = static_cast<const ::com::sun::star::uno::Sequence< sal_Int8 > *>(_pValue)->getLength(); } break; case SQL_LONGVARBINARY: @@ -371,7 +371,7 @@ Sequence<sal_Int8> OTools::getBytesValue(const OConnection* _pConnection, _aStatementHandle, (SQLUSMALLINT)columnIndex, _fSqlType, - (SQLPOINTER)aCharArray, + static_cast<SQLPOINTER>(aCharArray), nMaxLen, &pcbValue), _aStatementHandle,SQL_HANDLE_STMT,_xInterface); |