diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-06-08 16:24:31 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-06-08 16:24:31 +0200 |
commit | 85380260003dd481b97436adb14daf08ffd897c3 (patch) | |
tree | 013083d44475d67ee33a3d287f6be4cbc727b061 /dbaccess/source/ui/dlg | |
parent | a4fdc347f8809638af5c598346ec4c978ee40dbe (diff) |
loplugin:cstylecast: deal with remaining pointer casts
Change-Id: If951c1982314c5a045d51bc4fff62a3e2b265e08
Diffstat (limited to 'dbaccess/source/ui/dlg')
-rw-r--r-- | dbaccess/source/ui/dlg/TextConnectionHelper.hxx | 2 | ||||
-rw-r--r-- | dbaccess/source/ui/dlg/sqlmessage.cxx | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/dbaccess/source/ui/dlg/TextConnectionHelper.hxx b/dbaccess/source/ui/dlg/TextConnectionHelper.hxx index 2d78a732232c..135e4dc53102 100644 --- a/dbaccess/source/ui/dlg/TextConnectionHelper.hxx +++ b/dbaccess/source/ui/dlg/TextConnectionHelper.hxx @@ -80,7 +80,7 @@ namespace dbaui short m_nAvailableSections; protected: - void callModifiedHdl() const { if (m_aModifiedHandler.IsSet()) m_aModifiedHandler.Call((void*)this); } + void callModifiedHdl() const { if (m_aModifiedHandler.IsSet()) m_aModifiedHandler.Call(const_cast<OTextConnectionHelper *>(this)); } Link<> getControlModifiedLink() { return LINK(this, OTextConnectionHelper, OnControlModified); } DECL_LINK(OnSetExtensionHdl,RadioButton*); DECL_LINK(OnControlModified,Control*); diff --git a/dbaccess/source/ui/dlg/sqlmessage.cxx b/dbaccess/source/ui/dlg/sqlmessage.cxx index 7dcf64813ef4..8218b58b3fe1 100644 --- a/dbaccess/source/ui/dlg/sqlmessage.cxx +++ b/dbaccess/source/ui/dlg/sqlmessage.cxx @@ -239,7 +239,7 @@ namespace SQLExceptionInfo aCurrentElement; iter.next( aCurrentElement ); - const SQLException* pCurrentError = (const SQLException*)aCurrentElement; + const SQLException* pCurrentError = static_cast<const SQLException*>(aCurrentElement); OSL_ENSURE( pCurrentError, "lcl_buildExceptionChain: iterator failure!" ); // hasMoreElements should not have returned <TRUE/> in this case @@ -265,7 +265,7 @@ namespace if ( aCurrentElement.getType() == SQLExceptionInfo::SQL_CONTEXT ) { - const SQLContext* pContext = (const SQLContext*)aCurrentElement; + const SQLContext* pContext = static_cast<const SQLContext*>(aCurrentElement); if ( !pContext->Details.isEmpty() ) { ExceptionDisplayInfo aSubInfo( aCurrentElement.getType() ); |