From b401a8d9f9cd3ec90f365d5aa2435b851347e720 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 8 Jun 2015 16:23:04 +0200 Subject: loplugin:cstylecast: deal with remaining pointer casts Change-Id: If7c99c2ddb98c77bfecf42047fe8798423bb8c9b --- accessibility/source/extended/accessiblelistbox.cxx | 2 +- accessibility/source/helper/acc_factory.cxx | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'accessibility') 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(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(new VCLXAccessibleStatusBar( _pXWindow )); } else if ( nType == WINDOW_TABCONTROL ) { - xContext = (XAccessibleContext*) new VCLXAccessibleTabControl( _pXWindow ); + xContext = static_cast(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(new VCLXAccessibleFixedText( _pXWindow )); } else { - xContext = (XAccessibleContext*) new VCLXAccessibleComponent( _pXWindow ); + xContext = static_cast(new VCLXAccessibleComponent( _pXWindow )); } } return xContext; -- cgit