vcl/qa/cppunit/lifecycle.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit 0648f2c2701c878961242ddc5cef4428ff889da5 Author: Stephan Bergmann <[email protected]> Date: Mon Jun 8 09:00:24 2015 +0200 loplugin:redundantcast Change-Id: Ibb641ab458e49a30637f1dff715480c0ed5d8b42 diff --git a/vcl/qa/cppunit/lifecycle.cxx b/vcl/qa/cppunit/lifecycle.cxx index 3b78d53..50c1924 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>(arg)...); - pNew->mpRef = reinterpret_cast<void *>(static_cast<vcl::Window *>(pNew->mxRef)); + pNew->mpRef = static_cast<void *>(static_cast<vcl::Window *>(pNew->mxRef)); return pNew; } VclPtr<vcl::Window> getRef() { return mxRef; } @@ -232,7 +232,7 @@ public: if (!mbDeleted) { OUStringBuffer aMsg = "Type '"; - vcl::Window *pWin = reinterpret_cast<vcl::Window *>(mpRef); + vcl::Window *pWin = static_cast<vcl::Window *>(mpRef); aMsg.appendAscii(typeid(*pWin).name()); aMsg.append("' not freed after dispose"); CPPUNIT_FAIL(OUStringToOString(aMsg.makeStringAndClear(), _______________________________________________ Libreoffice-commits mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
