Kaydet (Commit) 948a3ece authored tarafından Stephan Bergmann's avatar Stephan Bergmann

loplugin:cstylecast: deal with remaining pointer casts

Change-Id: I18ea5378c165912e988d0c951aab3d83754cf6ca
üst a0461078
...@@ -62,7 +62,7 @@ using ::osl::MutexGuard; ...@@ -62,7 +62,7 @@ using ::osl::MutexGuard;
OConnection::OConnection(MysqlCDriver& _rDriver, sql::Driver * _cppDriver) OConnection::OConnection(MysqlCDriver& _rDriver, sql::Driver * _cppDriver)
:OMetaConnection_BASE(m_aMutex) :OMetaConnection_BASE(m_aMutex)
,OSubComponent<OConnection, OConnection_BASE>((::cppu::OWeakObject*)&_rDriver, this) ,OSubComponent<OConnection, OConnection_BASE>(static_cast<cppu::OWeakObject*>(&_rDriver), this)
,m_xMetaData(NULL) ,m_xMetaData(NULL)
,m_rDriver(_rDriver) ,m_rDriver(_rDriver)
,cppDriver(_cppDriver) ,cppDriver(_cppDriver)
......
...@@ -75,7 +75,7 @@ sal_Bool SAL_CALL OResultSet::supportsService(const rtl::OUString& _rServiceName ...@@ -75,7 +75,7 @@ sal_Bool SAL_CALL OResultSet::supportsService(const rtl::OUString& _rServiceName
OResultSet::OResultSet(OCommonStatement * pStmt, sql::ResultSet * result, rtl_TextEncoding _encoding ) OResultSet::OResultSet(OCommonStatement * pStmt, sql::ResultSet * result, rtl_TextEncoding _encoding )
: OResultSet_BASE(m_aMutex) : OResultSet_BASE(m_aMutex)
,OPropertySetHelper(OResultSet_BASE::rBHelper) ,OPropertySetHelper(OResultSet_BASE::rBHelper)
,m_aStatement((OWeakObject*)pStmt) ,m_aStatement(static_cast<OWeakObject*>(pStmt))
,m_xMetaData(NULL) ,m_xMetaData(NULL)
,m_result(result) ,m_result(result)
,fieldCount( 0 ) ,fieldCount( 0 )
......
...@@ -108,7 +108,7 @@ namespace connectivity ...@@ -108,7 +108,7 @@ namespace connectivity
::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > operator *() ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > operator *()
{ {
return ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >(*(OResultSet_BASE*)this); return ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >(*static_cast<OResultSet_BASE*>(this));
} }
// ::cppu::OComponentHelper // ::cppu::OComponentHelper
......
...@@ -56,7 +56,7 @@ using ::osl::MutexGuard; ...@@ -56,7 +56,7 @@ using ::osl::MutexGuard;
OCommonStatement::OCommonStatement(OConnection* _pConnection, sql::Statement *_cppStatement) OCommonStatement::OCommonStatement(OConnection* _pConnection, sql::Statement *_cppStatement)
:OCommonStatement_IBase(m_aMutex) :OCommonStatement_IBase(m_aMutex)
,OPropertySetHelper(OCommonStatement_IBase::rBHelper) ,OPropertySetHelper(OCommonStatement_IBase::rBHelper)
,OStatement_CBase( (::cppu::OWeakObject*)_pConnection, this ) ,OStatement_CBase( static_cast<cppu::OWeakObject*>(_pConnection), this )
,m_pConnection(_pConnection) ,m_pConnection(_pConnection)
,cppStatement(_cppStatement) ,cppStatement(_cppStatement)
,rBHelper(OCommonStatement_IBase::rBHelper) ,rBHelper(OCommonStatement_IBase::rBHelper)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment