diff options
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/svdraw/sdrpagewindow.cxx | 4 | ||||
-rw-r--r-- | svx/source/svdraw/svdcrtv.cxx | 2 | ||||
-rw-r--r-- | svx/source/svdraw/svdoashp.cxx | 2 | ||||
-rw-r--r-- | svx/source/svdraw/svdocirc.cxx | 2 | ||||
-rw-r--r-- | svx/source/svdraw/svdorect.cxx | 4 | ||||
-rw-r--r-- | svx/source/svdraw/svdotxdr.cxx | 2 | ||||
-rw-r--r-- | svx/source/svdraw/svdpage.cxx | 4 |
7 files changed, 10 insertions, 10 deletions
diff --git a/svx/source/svdraw/sdrpagewindow.cxx b/svx/source/svdraw/sdrpagewindow.cxx index f62a81ab95e5..68f4b5a2ab4a 100644 --- a/svx/source/svdraw/sdrpagewindow.cxx +++ b/svx/source/svdraw/sdrpagewindow.cxx @@ -264,7 +264,7 @@ namespace if(pObjA && pObjA->ISA(SdrPathObj)) { - basegfx::B2DPolyPolygon aPolyA(((SdrPathObj*)pObjA)->GetPathPoly()); + basegfx::B2DPolyPolygon aPolyA(pObjA->GetPathPoly()); aPolyA = basegfx::tools::correctOrientations(aPolyA); basegfx::B2DPolyPolygon aPolyB; @@ -275,7 +275,7 @@ namespace if(pObjB && pObjB->ISA(SdrPathObj)) { - basegfx::B2DPolyPolygon aCandidate(((SdrPathObj*)pObjB)->GetPathPoly()); + basegfx::B2DPolyPolygon aCandidate(pObjB->GetPathPoly()); aCandidate = basegfx::tools::correctOrientations(aCandidate); aPolyB.append(aCandidate); } diff --git a/svx/source/svdraw/svdcrtv.cxx b/svx/source/svdraw/svdcrtv.cxx index cd9f8880cbac..2e97cb78026c 100644 --- a/svx/source/svdraw/svdcrtv.cxx +++ b/svx/source/svdraw/svdcrtv.cxx @@ -477,7 +477,7 @@ bool SdrCreateView::ImpBegCreateObj(sal_uInt32 nInvent, sal_uInt16 nIdent, const if (!rLogRect.IsEmpty()) pAktCreate->NbcSetLogicRect(rLogRect); // make sure drag start point is inside WorkArea - const Rectangle& rWorkArea = ((SdrDragView*)this)->GetWorkArea(); + const Rectangle& rWorkArea = GetWorkArea(); if(!rWorkArea.IsEmpty()) { diff --git a/svx/source/svdraw/svdoashp.cxx b/svx/source/svdraw/svdoashp.cxx index 4ea4c4de24c5..c314edf2826a 100644 --- a/svx/source/svdraw/svdoashp.cxx +++ b/svx/source/svdraw/svdoashp.cxx @@ -1923,7 +1923,7 @@ SdrHdl* SdrObjCustomShape::GetHdl( sal_uInt32 nHdlNum ) const com::sun::star::awt::Point aPosition( aInteractionHandles[ nCustomShapeHdlNum ].xInteraction->getPosition() ); pH = new SdrHdl( Point( aPosition.X, aPosition.Y ), HDL_CUSTOMSHAPE1 ); pH->SetPointNum( nCustomShapeHdlNum ); - pH->SetObj( (SdrObject*)this ); + pH->SetObj( const_cast<SdrObjCustomShape*>(this) ); } catch ( const uno::RuntimeException& ) { diff --git a/svx/source/svdraw/svdocirc.cxx b/svx/source/svdraw/svdocirc.cxx index c0677ccc2c54..1468008781d2 100644 --- a/svx/source/svdraw/svdocirc.cxx +++ b/svx/source/svdraw/svdocirc.cxx @@ -464,7 +464,7 @@ SdrHdl* SdrCircObj::GetHdl(sal_uInt32 nHdlNum) const { pH = new SdrHdl(aPnt,eLocalKind); pH->SetPointNum(nPNum); - pH->SetObj((SdrObject*)this); + pH->SetObj(const_cast<SdrCircObj*>(this)); pH->SetRotationAngle(aGeo.nRotationAngle); } diff --git a/svx/source/svdraw/svdorect.cxx b/svx/source/svdraw/svdorect.cxx index 19e87c9134ec..24be46ef69d2 100644 --- a/svx/source/svdraw/svdorect.cxx +++ b/svx/source/svdraw/svdorect.cxx @@ -337,7 +337,7 @@ SdrHdl* SdrRectObj::GetHdl(sal_uInt32 nHdlNum) const // hack for calc grid sync to ensure the hatched area // for a textbox is displayed at correct position pH = new ImpTextframeHdl(maRect + GetGridOffset() ); - pH->SetObj((SdrObject*)this); + pH->SetObj(const_cast<SdrRectObj*>(this)); pH->SetRotationAngle(aGeo.nRotationAngle); break; } @@ -375,7 +375,7 @@ SdrHdl* SdrRectObj::GetHdl(sal_uInt32 nHdlNum) const } pH = new SdrHdl(aPnt,eKind); - pH->SetObj((SdrObject*)this); + pH->SetObj(const_cast<SdrRectObj*>(this)); pH->SetRotationAngle(aGeo.nRotationAngle); } diff --git a/svx/source/svdraw/svdotxdr.cxx b/svx/source/svdraw/svdotxdr.cxx index d28fc2e74708..36de7ba1de9c 100644 --- a/svx/source/svdraw/svdotxdr.cxx +++ b/svx/source/svdraw/svdotxdr.cxx @@ -56,7 +56,7 @@ SdrHdl* SdrTextObj::GetHdl(sal_uInt32 nHdlNum) const if (aGeo.nRotationAngle!=0) RotatePoint(aPnt,maRect.TopLeft(),aGeo.nSin,aGeo.nCos); if (eKind!=HDL_MOVE) { pH=new SdrHdl(aPnt,eKind); - pH->SetObj((SdrObject*)this); + pH->SetObj(const_cast<SdrTextObj*>(this)); pH->SetRotationAngle(aGeo.nRotationAngle); } return pH; diff --git a/svx/source/svdraw/svdpage.cxx b/svx/source/svdraw/svdpage.cxx index 8fe3df18977b..7d2d701ea44a 100644 --- a/svx/source/svdraw/svdpage.cxx +++ b/svx/source/svdraw/svdpage.cxx @@ -1573,10 +1573,10 @@ sal_uInt16 SdrPage::GetPageNum() const if (mbMaster) { if (pModel && pModel->IsMPgNumsDirty()) - ((SdrModel*)pModel)->RecalcPageNums(true); + pModel->RecalcPageNums(true); } else { if (pModel && pModel->IsPagNumsDirty()) - ((SdrModel*)pModel)->RecalcPageNums(false); + pModel->RecalcPageNums(false); } return nPageNum; } |