diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-03-28 18:57:37 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-03-28 19:09:17 +0100 |
commit | 9e13404a5ba5d68dd364c5037d0cda5d6bf9b716 (patch) | |
tree | f6ad21c7fbea9f14a73149b3b93e2990fc4b670e /accessibility | |
parent | 13e45d6fdec650e37ca8c6f41aaea24c6fa2c349 (diff) |
Clean up C-style casts from pointers to void
Change-Id: Ifab61517e0b2e721b85a3e2cc7d927198f1690c4
Diffstat (limited to 'accessibility')
-rw-r--r-- | accessibility/source/extended/accessibletabbarpagelist.cxx | 2 | ||||
-rw-r--r-- | accessibility/source/standard/vclxaccessiblebox.cxx | 2 | ||||
-rw-r--r-- | accessibility/source/standard/vclxaccessibletoolbox.cxx | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/accessibility/source/extended/accessibletabbarpagelist.cxx b/accessibility/source/extended/accessibletabbarpagelist.cxx index 88aa8e82eccc..8ca51866948c 100644 --- a/accessibility/source/extended/accessibletabbarpagelist.cxx +++ b/accessibility/source/extended/accessibletabbarpagelist.cxx @@ -326,7 +326,7 @@ namespace accessibility break; case VCLEVENT_TABBAR_PAGEMOVED: { - Pair* pPair = (Pair*) rVclWindowEvent.GetData(); + Pair* pPair = static_cast<Pair*>(rVclWindowEvent.GetData()); if ( pPair ) MoveChild( pPair->A(), pPair->B() ); } diff --git a/accessibility/source/standard/vclxaccessiblebox.cxx b/accessibility/source/standard/vclxaccessiblebox.cxx index 295bbe41153d..f7ad6ab5ec22 100644 --- a/accessibility/source/standard/vclxaccessiblebox.cxx +++ b/accessibility/source/standard/vclxaccessiblebox.cxx @@ -69,7 +69,7 @@ void VCLXAccessibleBox::ProcessWindowChildEvent( const VclWindowEvent& rVclWindo case VCLEVENT_WINDOW_SHOW: 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 // are identical to this object in which case this object will // be removed in a short time. diff --git a/accessibility/source/standard/vclxaccessibletoolbox.cxx b/accessibility/source/standard/vclxaccessibletoolbox.cxx index 41bf9a0254ce..3dc32a1e1795 100644 --- a/accessibility/source/standard/vclxaccessibletoolbox.cxx +++ b/accessibility/source/standard/vclxaccessibletoolbox.cxx @@ -464,7 +464,7 @@ void VCLXAccessibleToolBox::UpdateItemEnabled_Impl( sal_Int32 _nPos ) 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() ); if ( pChildWindow && pToolBox @@ -777,7 +777,7 @@ Reference< XAccessible > SAL_CALL VCLXAccessibleToolBox::getAccessibleAtPoint( c Reference< XAccessible > VCLXAccessibleToolBox::GetItemWindowAccessible( const VclWindowEvent& rVclWindowEvent ) { 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() ); if ( pChildWindow && pToolBox ) { |