summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-05-08 22:58:55 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-05-08 22:58:55 +0200
commit16660664879cfad128d4f1e562d30b0565b9b5de (patch)
tree853535c12dcba3da5e336dc604b3f07aa95bd1dd /vcl
parent92361b81d46b0c4cea71cf8643130d636f1821b6 (diff)
loplugin:redundantcast
Change-Id: I2931de2cc2a9916dae785d0cc130ce2aa73cf54e
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/window/event.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/vcl/source/window/event.cxx b/vcl/source/window/event.cxx
index 4a8d7e2a9633..1a14dd19b26e 100644
--- a/vcl/source/window/event.cxx
+++ b/vcl/source/window/event.cxx
@@ -274,9 +274,9 @@ ImplSVEvent * Window::PostUserEvent( const Link<>& rLink, void* pCaller, bool bR
{
// Double check that this is indeed a vcl::Window instance.
assert(dynamic_cast<vcl::Window *>(
- reinterpret_cast<vcl::Window *>(rLink.GetInstance())) ==
- reinterpret_cast<vcl::Window *>(rLink.GetInstance()));
- pSVEvent->mpInstanceRef = reinterpret_cast<vcl::Window *>(rLink.GetInstance());
+ static_cast<vcl::Window *>(rLink.GetInstance())) ==
+ static_cast<vcl::Window *>(rLink.GetInstance()));
+ pSVEvent->mpInstanceRef = static_cast<vcl::Window *>(rLink.GetInstance());
}
ImplAddDel( &(pSVEvent->maDelData) );