summaryrefslogtreecommitdiff
path: root/vcl/source/app
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source/app')
-rw-r--r--vcl/source/app/dndhelp.cxx2
-rw-r--r--vcl/source/app/svapp.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/app/dndhelp.cxx b/vcl/source/app/dndhelp.cxx
index bba7452ca2ee..82961c2d154b 100644
--- a/vcl/source/app/dndhelp.cxx
+++ b/vcl/source/app/dndhelp.cxx
@@ -74,7 +74,7 @@ vcl::unohelper::DragAndDropWrapper::~DragAndDropWrapper()
uno::Any vcl::unohelper::DragAndDropWrapper::queryInterface( const uno::Type & rType ) throw(uno::RuntimeException, std::exception)
{
uno::Any aRet = ::cppu::queryInterface( rType,
- (static_cast< ::com::sun::star::lang::XEventListener* >( (::com::sun::star::datatransfer::dnd::XDragGestureListener*)this) ),
+ (static_cast< ::com::sun::star::lang::XEventListener* >( static_cast<com::sun::star::datatransfer::dnd::XDragGestureListener*>(this)) ),
(static_cast< ::com::sun::star::datatransfer::dnd::XDragGestureListener* >(this)),
(static_cast< ::com::sun::star::datatransfer::dnd::XDragSourceListener* >(this)),
(static_cast< ::com::sun::star::datatransfer::dnd::XDropTargetListener* >(this)) );
diff --git a/vcl/source/app/svapp.cxx b/vcl/source/app/svapp.cxx
index 97621a5b1c87..536e81b7d229 100644
--- a/vcl/source/app/svapp.cxx
+++ b/vcl/source/app/svapp.cxx
@@ -675,7 +675,7 @@ void Application::RemoveKeyListener( const Link<>& rKeyListener )
bool Application::HandleKey( sal_uLong nEvent, vcl::Window *pWin, KeyEvent* pKeyEvent )
{
// let listeners process the key event
- VclWindowEvent aEvent( pWin, nEvent, (void *) pKeyEvent );
+ VclWindowEvent aEvent( pWin, nEvent, static_cast<void *>(pKeyEvent) );
ImplSVData* pSVData = ImplGetSVData();
bool bProcessed = false;