diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-03-28 18:57:45 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-03-28 19:09:17 +0100 |
commit | 03621417bff91364a83a50d6b7ea7db228bbec09 (patch) | |
tree | 72c478acd2fbbaec67a8feebec7f59537ff86c5d /avmedia | |
parent | 9e13404a5ba5d68dd364c5037d0cda5d6bf9b716 (diff) |
Clean up C-style casts from pointers to void
Change-Id: I61b960eecaeadaf12121596e181604318f951094
Diffstat (limited to 'avmedia')
-rw-r--r-- | avmedia/source/opengl/oglwindow.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/avmedia/source/opengl/oglwindow.cxx b/avmedia/source/opengl/oglwindow.cxx index f89e21d3bff3..956ce967d0b1 100644 --- a/avmedia/source/opengl/oglwindow.cxx +++ b/avmedia/source/opengl/oglwindow.cxx @@ -205,7 +205,7 @@ IMPL_LINK(OGLWindow, FocusGrabber, VclWindowEvent*, pEvent) { if( pEvent->GetId() == VCLEVENT_WINDOW_MOUSEMOVE ) { - MouseEvent* pMouseEvt = (MouseEvent*)pEvent->GetData(); + MouseEvent* pMouseEvt = static_cast<MouseEvent*>(pEvent->GetData()); if(pMouseEvt) { const Point& rMousePos = pMouseEvt->GetPosPixel(); @@ -233,7 +233,7 @@ IMPL_LINK(OGLWindow, CameraHandler, VclWindowEvent*, pEvent) { if( pEvent->GetId() == VCLEVENT_WINDOW_KEYINPUT ) { - KeyEvent* pKeyEvt = (KeyEvent*)pEvent->GetData(); + KeyEvent* pKeyEvt = static_cast<KeyEvent*>(pEvent->GetData()); if(pKeyEvt) { const sal_uInt16 nCode = pKeyEvt->GetKeyCode().GetCode(); @@ -338,7 +338,7 @@ IMPL_LINK(OGLWindow, CameraHandler, VclWindowEvent*, pEvent) } else if( pEvent->GetId() == VCLEVENT_WINDOW_MOUSEBUTTONDOWN ) { - MouseEvent* pMouseEvt = (MouseEvent*)pEvent->GetData(); + MouseEvent* pMouseEvt = static_cast<MouseEvent*>(pEvent->GetData()); if(pMouseEvt && pMouseEvt->IsLeft() && pMouseEvt->GetClicks() == 1) { m_aLastMousePos = pMouseEvt->GetPosPixel(); @@ -350,7 +350,7 @@ IMPL_LINK(OGLWindow, CameraHandler, VclWindowEvent*, pEvent) { m_rEventHandler.GrabFocus(); } - MouseEvent* pMouseEvt = (MouseEvent*)pEvent->GetData(); + MouseEvent* pMouseEvt = static_cast<MouseEvent*>(pEvent->GetData()); if(pMouseEvt && pMouseEvt->IsLeft() && m_aLastMousePos != Point(0,0)) { const Point& aCurPos = pMouseEvt->GetPosPixel(); @@ -380,7 +380,7 @@ IMPL_LINK(OGLWindow, CameraHandler, VclWindowEvent*, pEvent) } else if( pEvent->GetId() == VCLEVENT_WINDOW_MOUSEBUTTONUP ) { - MouseEvent* pMouseEvt = (MouseEvent*)pEvent->GetData(); + MouseEvent* pMouseEvt = static_cast<MouseEvent*>(pEvent->GetData()); if(pMouseEvt && pMouseEvt->IsLeft() && pMouseEvt->GetClicks() == 1) { m_aLastMousePos = Point(0,0); |