Kaydet (Commit) 816da33a authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1438214 Unchecked dynamic_cast

Change-Id: I68e1569835a1e981f57aabf2565f3eb2c619d296
Reviewed-on: https://gerrit.libreoffice.org/58608
Tested-by: Jenkins
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 1cd862de
...@@ -2280,10 +2280,10 @@ uno::Reference<table::XCellRange> GetRangeByName( ...@@ -2280,10 +2280,10 @@ uno::Reference<table::XCellRange> GetRangeByName(
pUnoCursor->SetMark(); pUnoCursor->SetMark();
pUnoCursor->GetPoint()->nNode = *pBRBox->GetSttNd(); pUnoCursor->GetPoint()->nNode = *pBRBox->GetSttNd();
pUnoCursor->Move( fnMoveForward, GoInNode ); 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 // HACK: remove pending actions for selecting old style tables
UnoActionRemoveContext aRemoveContext(*pCursor); UnoActionRemoveContext aRemoveContext(rCursor);
pCursor->MakeBoxSels(); rCursor.MakeBoxSels();
// pUnoCursor will be provided and will not be deleted // pUnoCursor will be provided and will not be deleted
return SwXCellRange::CreateXCellRange(pUnoCursor, *pFormat, rDesc).get(); return SwXCellRange::CreateXCellRange(pUnoCursor, *pFormat, rDesc).get();
} }
......
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