summaryrefslogtreecommitdiff
path: root/vcl/source/app
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-06-08 16:29:41 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-06-08 16:29:41 +0200
commitf6ec07a3963a401dc736baa9bdd2ed3c7325bb66 (patch)
tree9cad620eb2cd5846464cf151b10949a8e36e5200 /vcl/source/app
parent9f356d3e66127bf14fe957962e8451dbd27c8ac8 (diff)
loplugin:cstylecast: deal with remaining pointer casts
Change-Id: I07bf1403e6b992807541a499b786d47f835b2f81
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;