[Libreoffice-commits] core.git: vcl/source
Stephan Bergmann
sbergman at redhat.com
Fri May 8 13:59:39 PDT 2015
vcl/source/window/event.cxx | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
New commits:
commit 16660664879cfad128d4f1e562d30b0565b9b5de
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Fri May 8 22:58:55 2015 +0200
loplugin:redundantcast
Change-Id: I2931de2cc2a9916dae785d0cc130ce2aa73cf54e
diff --git a/vcl/source/window/event.cxx b/vcl/source/window/event.cxx
index 4a8d7e2..1a14dd1 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) );
More information about the Libreoffice-commits
mailing list