diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-06-08 16:23:04 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-06-08 16:23:04 +0200 |
commit | b401a8d9f9cd3ec90f365d5aa2435b851347e720 (patch) | |
tree | dcfe17c01f0a1bcc3045721d984bf7424ad0aaf7 /accessibility | |
parent | b997705c07810d032c2f0293d4cfbccf14679855 (diff) |
loplugin:cstylecast: deal with remaining pointer casts
Change-Id: If7c99c2ddb98c77bfecf42047fe8798423bb8c9b
Diffstat (limited to 'accessibility')
-rw-r--r-- | accessibility/source/extended/accessiblelistbox.cxx | 2 | ||||
-rw-r--r-- | accessibility/source/helper/acc_factory.cxx | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/accessibility/source/extended/accessiblelistbox.cxx b/accessibility/source/extended/accessiblelistbox.cxx index 22cc0202e7bb..cffd5b5a055d 100644 --- a/accessibility/source/extended/accessiblelistbox.cxx +++ b/accessibility/source/extended/accessiblelistbox.cxx @@ -122,7 +122,7 @@ namespace accessibility bool bNeedFocus = false; if (pBox) { - vcl::Window* pParent = ((vcl::Window*)pBox)->GetParent(); + vcl::Window* pParent = static_cast<vcl::Window*>(pBox)->GetParent(); if (pParent && pParent->GetType() == WINDOW_FLOATINGWINDOW) { // MT: ImplGetAppSVData shouldn't be exported from VCL. diff --git a/accessibility/source/helper/acc_factory.cxx b/accessibility/source/helper/acc_factory.cxx index ef67482170a3..b7ff430cc7b3 100644 --- a/accessibility/source/helper/acc_factory.cxx +++ b/accessibility/source/helper/acc_factory.cxx @@ -325,12 +325,12 @@ Reference< XAccessibleContext > AccessibleFactory::createAccessibleContext( VCLX else if ( nType == WINDOW_STATUSBAR ) { - xContext = (XAccessibleContext*) new VCLXAccessibleStatusBar( _pXWindow ); + xContext = static_cast<XAccessibleContext*>(new VCLXAccessibleStatusBar( _pXWindow )); } else if ( nType == WINDOW_TABCONTROL ) { - xContext = (XAccessibleContext*) new VCLXAccessibleTabControl( _pXWindow ); + xContext = static_cast<XAccessibleContext*>(new VCLXAccessibleTabControl( _pXWindow )); } else if ( nType == WINDOW_TABPAGE && pWindow->GetAccessibleParentWindow() && pWindow->GetAccessibleParentWindow()->GetType() == WINDOW_TABCONTROL ) @@ -362,11 +362,11 @@ Reference< XAccessibleContext > AccessibleFactory::createAccessibleContext( VCLX else if ( ( nType == WINDOW_HELPTEXTWINDOW ) || ( nType == WINDOW_FIXEDLINE ) ) { - xContext = (XAccessibleContext*) new VCLXAccessibleFixedText( _pXWindow ); + xContext = static_cast<XAccessibleContext*>(new VCLXAccessibleFixedText( _pXWindow )); } else { - xContext = (XAccessibleContext*) new VCLXAccessibleComponent( _pXWindow ); + xContext = static_cast<XAccessibleContext*>(new VCLXAccessibleComponent( _pXWindow )); } } return xContext; |