summaryrefslogtreecommitdiff
path: root/svx/source/svdraw/svdoedge.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-06-08 16:28:40 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-06-08 16:28:40 +0200
commitbc2becdf1a12a1020584ee808c965e41f1837383 (patch)
tree9e49c55cf32ce8cbd5997a62f9be2250ced4669f /svx/source/svdraw/svdoedge.cxx
parent95f03f49940f88ebd49a02e1d133cf83259eef47 (diff)
loplugin:cstylecast: deal with remaining pointer casts
Change-Id: I94b2fbbb00e9772b668128f31cf08115bdfb16b5
Diffstat (limited to 'svx/source/svdraw/svdoedge.cxx')
-rw-r--r--svx/source/svdraw/svdoedge.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/svx/source/svdraw/svdoedge.cxx b/svx/source/svdraw/svdoedge.cxx
index ed8c82003ca0..430518f183f5 100644
--- a/svx/source/svdraw/svdoedge.cxx
+++ b/svx/source/svdraw/svdoedge.cxx
@@ -725,7 +725,7 @@ XPolygon SdrEdgeObj::ImpCalcEdgeTrack(const XPolygon& rTrack0, SdrObjConnection&
const SfxItemSet& rSet = GetObjectItemSet();
if (bCon1) {
- if (rCon1.pObj==(SdrObject*)this)
+ if (rCon1.pObj==static_cast<SdrObject const *>(this))
{
// check, just in case
aBoundRect1=aOutRect;
@@ -750,7 +750,7 @@ XPolygon SdrEdgeObj::ImpCalcEdgeTrack(const XPolygon& rTrack0, SdrObjConnection&
aBewareRect1=aBoundRect1;
}
if (bCon2) {
- if (rCon2.pObj==(SdrObject*)this) { // check, just in case
+ if (rCon2.pObj==static_cast<SdrObject const *>(this)) { // check, just in case
aBoundRect2=aOutRect;
}
else
@@ -2124,7 +2124,7 @@ bool SdrEdgeObj::ImpFindConnector(const Point& rPt, const SdrPageView& rPV, SdrO
no--;
SdrObject* pObj=pOL->GetObj(no);
if (rVisLayer.IsSet(pObj->GetLayer()) && pObj->IsVisible() && // only visible objects
- (pThis==NULL || pObj!=(SdrObject*)pThis) && // don't connect it to itself
+ (pThis==NULL || pObj!=static_cast<SdrObject const *>(pThis)) && // don't connect it to itself
pObj->IsNode())
{
Rectangle aObjBound(pObj->GetCurrentBoundRect());