From 8c8d6f08491479c23998cbfb96201f12acbd873a Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 17 Oct 2014 10:35:35 +0200 Subject: loplugin: cstylecast Change-Id: Ia3055b00c20a885dfa0584f864f0e91ccad1e9c9 --- svx/source/svdraw/svdhdl.cxx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'svx/source/svdraw/svdhdl.cxx') diff --git a/svx/source/svdraw/svdhdl.cxx b/svx/source/svdraw/svdhdl.cxx index ac6b72748126..caa76d8f7340 100644 --- a/svx/source/svdraw/svdhdl.cxx +++ b/svx/source/svdraw/svdhdl.cxx @@ -1201,9 +1201,9 @@ void SdrHdlGradient::FromIAOToItem(SdrObject* _pObj, bool bSetItemOnObject, bool aGradTransVector.aCol2 = pColHdl2->GetColor(); if(IsGradient()) - aOldGradTransGradient.aGradient = ((XFillGradientItem&)rSet.Get(XATTR_FILLGRADIENT)).GetGradientValue(); + aOldGradTransGradient.aGradient = static_cast(rSet.Get(XATTR_FILLGRADIENT)).GetGradientValue(); else - aOldGradTransGradient.aGradient = ((XFillFloatTransparenceItem&)rSet.Get(XATTR_FILLFLOATTRANSPARENCE)).GetGradientValue(); + aOldGradTransGradient.aGradient = static_cast(rSet.Get(XATTR_FILLFLOATTRANSPARENCE)).GetGradientValue(); // transform vector data to gradient aGradTransformer.VecToGrad(aGradTransVector, aGradTransGradient, aOldGradTransGradient, _pObj, bMoveSingleHandle, bMoveFirstHandle); @@ -1447,7 +1447,7 @@ void ImpEdgeHdl::CreateB2dIAObject() if(pView && !pView->areMarkHandlesHidden()) { - const SdrEdgeObj* pEdge = (SdrEdgeObj*)pObj; + const SdrEdgeObj* pEdge = static_cast(pObj); if(pEdge->GetConnectedNode(nObjHdlNum == 0) != NULL) eColIndex = LightRed; @@ -1531,7 +1531,7 @@ bool ImpEdgeHdl::IsHorzDrag() const if (nObjHdlNum<=1) return false; - SdrEdgeKind eEdgeKind = ((SdrEdgeKindItem&)(pEdge->GetObjectItem(SDRATTR_EDGEKIND))).GetValue(); + SdrEdgeKind eEdgeKind = static_cast(pEdge->GetObjectItem(SDRATTR_EDGEKIND)).GetValue(); const SdrEdgeInfoRec& rInfo=pEdge->aEdgeInfo; if (eEdgeKind==SDREDGE_ORTHOLINES || eEdgeKind==SDREDGE_BEZIER) @@ -1727,7 +1727,7 @@ static bool ImpSdrHdlListSorter(SdrHdl* const& lhs, SdrHdl* const& rhs) if (nNum1==nNum2) { if (eKind1==eKind2) - return (sal_IntPtr)lhs<(sal_IntPtr)rhs; // Hack, to always get to the same sorting + return lhs