diff options
author | Noel Grandin <noel@peralex.com> | 2014-10-17 15:43:45 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-10-20 13:33:57 +0200 |
commit | efa7f1a549ebf2580d50f6f0bb96e294a5fce670 (patch) | |
tree | 7e8cccc2a6e0a5585c4c2eabc36400337f0bcc52 /svx/source/dialog/connctrl.cxx | |
parent | b0509439d9fa664be8f94b557d83ea3a2891c31f (diff) |
loplugin: cstylecast
Change-Id: Idb6337bed1c32444f9644d54eba5240f09c13ef6
Diffstat (limited to 'svx/source/dialog/connctrl.cxx')
-rw-r--r-- | svx/source/dialog/connctrl.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/svx/source/dialog/connctrl.cxx b/svx/source/dialog/connctrl.cxx index efa5f39d3d14..43a6989f086d 100644 --- a/svx/source/dialog/connctrl.cxx +++ b/svx/source/dialog/connctrl.cxx @@ -161,7 +161,7 @@ void SvxXConnectionPreview::Construct() if( nInv == SdrInventor && nId == OBJ_EDGE ) { bFound = true; - SdrEdgeObj* pTmpEdgeObj = (SdrEdgeObj*) pObj; + const SdrEdgeObj* pTmpEdgeObj = static_cast<const SdrEdgeObj*>(pObj); pEdgeObj = (SdrEdgeObj*) pTmpEdgeObj->Clone(); SdrObjConnection& rConn1 = (SdrObjConnection&)pEdgeObj->GetConnection( true ); @@ -249,7 +249,7 @@ sal_uInt16 SvxXConnectionPreview::GetLineDeltaAnz() sal_uInt16 nCount(0); if(SfxItemState::DONTCARE != rSet.GetItemState(SDRATTR_EDGELINEDELTAANZ)) - nCount = ((const SdrEdgeLineDeltaAnzItem&)rSet.Get(SDRATTR_EDGELINEDELTAANZ)).GetValue(); + nCount = static_cast<const SdrEdgeLineDeltaAnzItem&>(rSet.Get(SDRATTR_EDGELINEDELTAANZ)).GetValue(); return nCount; } |