summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-08-05 10:29:32 +0100
committerCaolán McNamara <caolanm@redhat.com>2018-08-05 20:27:32 +0200
commit39f504dc888aeef8e52c65d3d4ac7d0639407a73 (patch)
tree0c3b5285c563b60b916f1758ffe6b3c494d0d790 /sw
parent576fac6f6199a87fb07e4a067abaa18c89b6d7ea (diff)
coverity#1438226 Unchecked dynamic_cast
Change-Id: Ic00eae935f81cab692b614abee9d30992fc7b176 Reviewed-on: https://gerrit.libreoffice.org/58605 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/unocore/unochart.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sw/source/core/unocore/unochart.cxx b/sw/source/core/unocore/unochart.cxx
index 7858cf0d64be..614e675d432c 100644
--- a/sw/source/core/unocore/unochart.cxx
+++ b/sw/source/core/unocore/unochart.cxx
@@ -419,11 +419,11 @@ static void GetFormatAndCreateCursorFromRangeRep(
pUnoCursor->SetMark();
pUnoCursor->GetPoint()->nNode = *pBRBox->GetSttNd();
pUnoCursor->Move( fnMoveForward, GoInNode );
- SwUnoTableCursor* pCursor =
- dynamic_cast<SwUnoTableCursor*>(pUnoCursor.get());
+ SwUnoTableCursor& rCursor =
+ dynamic_cast<SwUnoTableCursor&>(*pUnoCursor.get());
// HACK: remove pending actions for old style tables
- UnoActionRemoveContext aRemoveContext(*pCursor);
- pCursor->MakeBoxSels();
+ UnoActionRemoveContext aRemoveContext(rCursor);
+ rCursor.MakeBoxSels();
rpUnoCursor = pUnoCursor;
}
}