Kaydet (Commit) 6792ed3b authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1438212 Unchecked dynamic_cast

Change-Id: I9c346fd09603d086542f7f3cb355c7e5acc3378e
Reviewed-on: https://gerrit.libreoffice.org/58609
Tested-by: Jenkins
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 816da33a
......@@ -4040,12 +4040,12 @@ void SwXTableRows::removeByIndex(sal_Int32 nIndex, sal_Int32 nCount)
pUnoCursor->SetMark();
pUnoCursor->GetPoint()->nNode = *pBLBox->GetSttNd();
pUnoCursor->Move(fnMoveForward, GoInNode);
SwUnoTableCursor* pCursor = dynamic_cast<SwUnoTableCursor*>(pUnoCursor.get());
SwUnoTableCursor& rCursor = dynamic_cast<SwUnoTableCursor&>(*pUnoCursor.get());
{
// HACK: remove pending actions for selecting old style tables
UnoActionRemoveContext aRemoveContext(*pCursor);
UnoActionRemoveContext aRemoveContext(rCursor);
}
pCursor->MakeBoxSels();
rCursor.MakeBoxSels();
{ // these braces are important
UnoActionContext aAction(pFrameFormat->GetDoc());
pFrameFormat->GetDoc()->DeleteRow(*pUnoCursor);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment