summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-06-08 09:00:24 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-06-08 09:00:24 +0200
commit0648f2c2701c878961242ddc5cef4428ff889da5 (patch)
treef2773062b7d7b2524982e929d75ac9266b315832 /vcl
parentbe8512f99bc9ab18e55aabe01cc0ab1e6baea9e6 (diff)
loplugin:redundantcast
Change-Id: Ibb641ab458e49a30637f1dff715480c0ed5d8b42
Diffstat (limited to 'vcl')
-rw-r--r--vcl/qa/cppunit/lifecycle.cxx4
1 files changed, 2 insertions, 2 deletions
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>(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(),