diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-01-28 13:50:17 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-01-28 13:50:37 +0100 |
commit | 4e3da621fe26c2ad85258692c63a044d0541bd64 (patch) | |
tree | 05607d0de471c5d9451b197945243f735ee168b0 /connectivity/source | |
parent | 4b60941b60262be4861f5e8fba95366d3187c445 (diff) |
Some more loplugin:cstylecast clean-up
Change-Id: I132d22e2af3cf673c17d8964f690d48990834884
Diffstat (limited to 'connectivity/source')
-rw-r--r-- | connectivity/source/drivers/odbc/OPreparedStatement.cxx | 2 | ||||
-rw-r--r-- | connectivity/source/drivers/postgresql/pq_connection.cxx | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/connectivity/source/drivers/odbc/OPreparedStatement.cxx b/connectivity/source/drivers/odbc/OPreparedStatement.cxx index dec05dd69386..82f5c984b282 100644 --- a/connectivity/source/drivers/odbc/OPreparedStatement.cxx +++ b/connectivity/source/drivers/odbc/OPreparedStatement.cxx @@ -186,7 +186,7 @@ sal_Bool SAL_CALL OPreparedStatement::execute( ) throw(SQLException, RuntimeExc // Get the parameter number that requires data sal_Int32* paramIndex = 0; - nReturn = N3SQLParamData(m_aStatementHandle,(SQLPOINTER*)¶mIndex); + nReturn = N3SQLParamData(m_aStatementHandle, reinterpret_cast<SQLPOINTER*>(¶mIndex)); // If the parameter index is -1, there is no // more data required diff --git a/connectivity/source/drivers/postgresql/pq_connection.cxx b/connectivity/source/drivers/postgresql/pq_connection.cxx index 285462d83a63..c349146c6bbf 100644 --- a/connectivity/source/drivers/postgresql/pq_connection.cxx +++ b/connectivity/source/drivers/postgresql/pq_connection.cxx @@ -146,8 +146,8 @@ static sal_Int32 readLogLevelFromConfiguration() { sal_Int32 loglevel = LogLevel::NONE; OUString fileName; - osl_getModuleURLFromAddress( - (void*) readLogLevelFromConfiguration, &fileName.pData ); + osl_getModuleURLFromFunctionAddress( + reinterpret_cast<oslGenericFunction>(readLogLevelFromConfiguration), &fileName.pData ); fileName = fileName.copy( fileName.lastIndexOf( '/' )+1 ); #ifdef MACOSX fileName += "../Resources/"; |