summaryrefslogtreecommitdiff
path: root/include/vcl/event.hxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-03-29 09:17:00 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-03-29 09:17:47 +0200
commit0bd502af47b53bc4340df7874bd726361e3bbad9 (patch)
tree813d8fb60a4a5fe8bf4cbf316fb73621247647f3 /include/vcl/event.hxx
parent0db89bcabfb4e207bed95b4a14685391311eaa3e (diff)
Clean up remaining C-style casts among void pointers
Change-Id: I1b49c020d597b569e330482f4dbf20c15ccdae3f
Diffstat (limited to 'include/vcl/event.hxx')
-rw-r--r--include/vcl/event.hxx4
1 files changed, 2 insertions, 2 deletions
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<void*>(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<void*>(pData);
mnFlags = nChangeFlags;
mnType = nType;
}