diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-03-28 19:04:08 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-03-28 19:09:21 +0100 |
commit | 5d950b3afd91e87035d24b550f29d0b3a7c5033b (patch) | |
tree | 6333d83db4b1c66e823185c37b42c53103aa9cf1 /framework/source/dispatch | |
parent | 89d2e21af6909e5d2526eb7b11c7cf87bac23c01 (diff) |
Clean up C-style casts from pointers to void
Change-Id: Ide77480339e35a886f0d33c2a194244064c02488
Diffstat (limited to 'framework/source/dispatch')
-rw-r--r-- | framework/source/dispatch/windowcommanddispatch.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/framework/source/dispatch/windowcommanddispatch.cxx b/framework/source/dispatch/windowcommanddispatch.cxx index 1619051cd74e..7f961e798204 100644 --- a/framework/source/dispatch/windowcommanddispatch.cxx +++ b/framework/source/dispatch/windowcommanddispatch.cxx @@ -97,7 +97,7 @@ IMPL_LINK(WindowCommandDispatch, impl_notifyCommand, void*, pParam) if ( ! pParam) return 0L; - const VclWindowEvent* pEvent = (VclWindowEvent*)pParam; + const VclWindowEvent* pEvent = static_cast<VclWindowEvent*>(pParam); if (pEvent->GetId() == VCLEVENT_OBJECT_DYING) { impl_stopListening(); @@ -106,7 +106,7 @@ IMPL_LINK(WindowCommandDispatch, impl_notifyCommand, void*, pParam) if (pEvent->GetId() != VCLEVENT_WINDOW_COMMAND) return 0L; - const CommandEvent* pCommand = (CommandEvent*)pEvent->GetData(); + const CommandEvent* pCommand = static_cast<CommandEvent*>(pEvent->GetData()); if (pCommand->GetCommand() != COMMAND_SHOWDIALOG) return 0L; |