From 0bd502af47b53bc4340df7874bd726361e3bbad9 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Sun, 29 Mar 2015 09:17:00 +0200 Subject: Clean up remaining C-style casts among void pointers Change-Id: I1b49c020d597b569e330482f4dbf20c15ccdae3f --- include/vcl/cmdevt.hxx | 2 +- include/vcl/event.hxx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/vcl/cmdevt.hxx b/include/vcl/cmdevt.hxx index ad6a9dc72d25..942d45bb443a 100644 --- a/include/vcl/cmdevt.hxx +++ b/include/vcl/cmdevt.hxx @@ -439,7 +439,7 @@ inline CommandEvent::CommandEvent( const Point& rMousePos, sal_uInt16 nCmd, bool bMEvt, const void* pCmdData ) : maPos( rMousePos ) { - mpData = (void*)pCmdData; + mpData = const_cast(pCmdData); mnCommand = nCmd; mbMouseEvent = bMEvt; } diff --git a/include/vcl/event.hxx b/include/vcl/event.hxx index 8ad67fb0efdc..05a54dc7dfc5 100644 --- a/include/vcl/event.hxx +++ b/include/vcl/event.hxx @@ -447,7 +447,7 @@ inline NotifyEvent::NotifyEvent( MouseNotifyEvent nEventType, vcl::Window* pWind const void* pEvent, long nRet ) { mpWindow = pWindow; - mpData = (void*)pEvent; + mpData = const_cast(pEvent); mnEventType = nEventType; mnRetValue = nRet; } @@ -521,7 +521,7 @@ inline DataChangedEvent::DataChangedEvent( DataChangedEventType nType, const void* pData, AllSettingsFlags nChangeFlags ) { - mpData = (void*)pData; + mpData = const_cast(pData); mnFlags = nChangeFlags; mnType = nType; } -- cgit