summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-04-10 14:43:23 +0200
committerNoel Grandin <noel@peralex.com>2015-04-10 15:05:52 +0200
commited48a8af3f84ff327a310124a348f6bbe5fa3519 (patch)
tree7ba84cc162dc06d18b2c6a02f7cb5218d3ef0382
parent7377c4d6dd6dacd1d20352226a46a075cbd6a935 (diff)
loplugin:redundantcast
Change-Id: I62aa8ca0f07dce9a820527ac1aef9c44cd70223a
-rw-r--r--include/vcl/outdev.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/vcl/outdev.hxx b/include/vcl/outdev.hxx
index 7066df422763..16f44b8085f5 100644
--- a/include/vcl/outdev.hxx
+++ b/include/vcl/outdev.hxx
@@ -281,7 +281,7 @@ private:
{
assert(mnRefCnt>0);
if (!--mnRefCnt)
- delete const_cast<OutputDevice*>(this);
+ delete this;
}
private: