diff options
Diffstat (limited to 'sw/source/core/frmedt')
-rw-r--r-- | sw/source/core/frmedt/fefly1.cxx | 2 | ||||
-rw-r--r-- | sw/source/core/frmedt/feshview.cxx | 6 | ||||
-rw-r--r-- | sw/source/core/frmedt/tblsel.cxx | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/sw/source/core/frmedt/fefly1.cxx b/sw/source/core/frmedt/fefly1.cxx index 024c895d618b..b0d3a3a8e0f3 100644 --- a/sw/source/core/frmedt/fefly1.cxx +++ b/sw/source/core/frmedt/fefly1.cxx @@ -736,7 +736,7 @@ const SwFrameFormat *SwFEShell::NewFlyFrame( const SfxItemSet& rSet, bool bAnchV if( bVOriChgd ) const_cast<SfxItemSet&>(rSet).Put( aOldV ); - GetDoc()->SetFlyFrameAttr( *pRet, (SfxItemSet&)rSet ); + GetDoc()->SetFlyFrameAttr( *pRet, const_cast<SfxItemSet&>(rSet) ); GetDoc()->GetIDocumentUndoRedo().DoUndo(bDoesUndo); } delete pOldAnchor; diff --git a/sw/source/core/frmedt/feshview.cxx b/sw/source/core/frmedt/feshview.cxx index aa9ee085049b..813dcc658a8d 100644 --- a/sw/source/core/frmedt/feshview.cxx +++ b/sw/source/core/frmedt/feshview.cxx @@ -799,7 +799,7 @@ const SwFrameFormat* SwFEShell::SelFlyGrabCursor() pCursor->GetPoint()->nNode = *pCNode; pCursor->GetPoint()->nContent.Assign( pCNode, 0 ); - SwRect& rChrRect = (SwRect&)GetCharRect(); + SwRect& rChrRect = const_cast<SwRect&>(GetCharRect()); rChrRect = pFly->Prt(); rChrRect.Pos() += pFly->Frame().Pos(); GetCursorDocPos() = rChrRect.Pos(); @@ -2126,7 +2126,7 @@ bool SwFEShell::EndMark() SwDrawView* pDView = Imp()->GetDrawView(); // frames are not selected this way, except when // it is only one frame - SdrMarkList &rMrkList = (SdrMarkList&)pDView->GetMarkedObjectList(); + SdrMarkList &rMrkList = const_cast<SdrMarkList&>(pDView->GetMarkedObjectList()); SwFlyFrame* pOldSelFly = ::GetFlyFromMarked( &rMrkList, this ); if ( rMrkList.GetMarkCount() > 1 ) @@ -2487,7 +2487,7 @@ bool SwFEShell::GotoFly( const OUString& rName, FlyCntType eType, bool bSelFrame pCursor->GetPoint()->nNode = *pCNode; pCursor->GetPoint()->nContent.Assign( pCNode, 0 ); - SwRect& rChrRect = (SwRect&)GetCharRect(); + SwRect& rChrRect = const_cast<SwRect&>(GetCharRect()); rChrRect = pFrame->Prt(); rChrRect.Pos() += pFrame->Frame().Pos(); GetCursorDocPos() = rChrRect.Pos(); diff --git a/sw/source/core/frmedt/tblsel.cxx b/sw/source/core/frmedt/tblsel.cxx index 5055c0740328..5bdbcae41257 100644 --- a/sw/source/core/frmedt/tblsel.cxx +++ b/sw/source/core/frmedt/tblsel.cxx @@ -1445,7 +1445,7 @@ TableMergeErr CheckMergeSel( const SwSelBoxes& rBoxes ) FndBox_ aFndBox( nullptr, nullptr ); FndPara aPara( rBoxes, &aFndBox ); const SwTableNode* pTableNd = aPara.rBoxes[0]->GetSttNd()->FindTableNode(); - ForEach_FndLineCopyCol( (SwTableLines&)pTableNd->GetTable().GetTabLines(), &aPara ); + ForEach_FndLineCopyCol( const_cast<SwTableLines&>(pTableNd->GetTable().GetTabLines()), &aPara ); if( !aFndBox.GetLines().empty() ) { bool bMergeSelOk = true; |