Kaydet (Commit) 9e13404a authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Clean up C-style casts from pointers to void

Change-Id: Ifab61517e0b2e721b85a3e2cc7d927198f1690c4
üst 13e45d6f
...@@ -326,7 +326,7 @@ namespace accessibility ...@@ -326,7 +326,7 @@ namespace accessibility
break; break;
case VCLEVENT_TABBAR_PAGEMOVED: case VCLEVENT_TABBAR_PAGEMOVED:
{ {
Pair* pPair = (Pair*) rVclWindowEvent.GetData(); Pair* pPair = static_cast<Pair*>(rVclWindowEvent.GetData());
if ( pPair ) if ( pPair )
MoveChild( pPair->A(), pPair->B() ); MoveChild( pPair->A(), pPair->B() );
} }
......
...@@ -69,7 +69,7 @@ void VCLXAccessibleBox::ProcessWindowChildEvent( const VclWindowEvent& rVclWindo ...@@ -69,7 +69,7 @@ void VCLXAccessibleBox::ProcessWindowChildEvent( const VclWindowEvent& rVclWindo
case VCLEVENT_WINDOW_SHOW: case VCLEVENT_WINDOW_SHOW:
case VCLEVENT_WINDOW_HIDE: case VCLEVENT_WINDOW_HIDE:
{ {
vcl::Window* pChildWindow = (vcl::Window *) rVclWindowEvent.GetData(); vcl::Window* pChildWindow = static_cast<vcl::Window *>(rVclWindowEvent.GetData());
// Just compare to the combo box text field. All other children // Just compare to the combo box text field. All other children
// are identical to this object in which case this object will // are identical to this object in which case this object will
// be removed in a short time. // be removed in a short time.
......
...@@ -464,7 +464,7 @@ void VCLXAccessibleToolBox::UpdateItemEnabled_Impl( sal_Int32 _nPos ) ...@@ -464,7 +464,7 @@ void VCLXAccessibleToolBox::UpdateItemEnabled_Impl( sal_Int32 _nPos )
void VCLXAccessibleToolBox::HandleSubToolBarEvent( const VclWindowEvent& rVclWindowEvent, bool _bShow ) void VCLXAccessibleToolBox::HandleSubToolBarEvent( const VclWindowEvent& rVclWindowEvent, bool _bShow )
{ {
vcl::Window* pChildWindow = (vcl::Window *) rVclWindowEvent.GetData(); vcl::Window* pChildWindow = static_cast<vcl::Window *>(rVclWindowEvent.GetData());
ToolBox* pToolBox = static_cast< ToolBox* >( GetWindow() ); ToolBox* pToolBox = static_cast< ToolBox* >( GetWindow() );
if ( pChildWindow if ( pChildWindow
&& pToolBox && pToolBox
...@@ -777,7 +777,7 @@ Reference< XAccessible > SAL_CALL VCLXAccessibleToolBox::getAccessibleAtPoint( c ...@@ -777,7 +777,7 @@ Reference< XAccessible > SAL_CALL VCLXAccessibleToolBox::getAccessibleAtPoint( c
Reference< XAccessible > VCLXAccessibleToolBox::GetItemWindowAccessible( const VclWindowEvent& rVclWindowEvent ) Reference< XAccessible > VCLXAccessibleToolBox::GetItemWindowAccessible( const VclWindowEvent& rVclWindowEvent )
{ {
Reference< XAccessible > xReturn; Reference< XAccessible > xReturn;
vcl::Window* pChildWindow = (vcl::Window *) rVclWindowEvent.GetData(); vcl::Window* pChildWindow = static_cast<vcl::Window *>(rVclWindowEvent.GetData());
ToolBox* pToolBox = static_cast< ToolBox* >( GetWindow() ); ToolBox* pToolBox = static_cast< ToolBox* >( GetWindow() );
if ( pChildWindow && pToolBox ) if ( pChildWindow && pToolBox )
{ {
......
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