From 0648f2c2701c878961242ddc5cef4428ff889da5 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 8 Jun 2015 09:00:24 +0200 Subject: loplugin:redundantcast Change-Id: Ibb641ab458e49a30637f1dff715480c0ed5d8b42 --- vcl/qa/cppunit/lifecycle.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vcl') diff --git a/vcl/qa/cppunit/lifecycle.cxx b/vcl/qa/cppunit/lifecycle.cxx index 3b78d5346d19..50c192432327 100644 --- a/vcl/qa/cppunit/lifecycle.cxx +++ b/vcl/qa/cppunit/lifecycle.cxx @@ -219,7 +219,7 @@ public: LeakTestObject *pNew = new LeakTestObject(); pNew->mxRef = VclPtr< LeakTestClass< vcl_type > >::Create( pNew->mbDeleted, std::forward(arg)...); - pNew->mpRef = reinterpret_cast(static_cast(pNew->mxRef)); + pNew->mpRef = static_cast(static_cast(pNew->mxRef)); return pNew; } VclPtr getRef() { return mxRef; } @@ -232,7 +232,7 @@ public: if (!mbDeleted) { OUStringBuffer aMsg = "Type '"; - vcl::Window *pWin = reinterpret_cast(mpRef); + vcl::Window *pWin = static_cast(mpRef); aMsg.appendAscii(typeid(*pWin).name()); aMsg.append("' not freed after dispose"); CPPUNIT_FAIL(OUStringToOString(aMsg.makeStringAndClear(), -- cgit