summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-06-04 20:26:45 +0100
committerCaolán McNamara <caolanm@redhat.com>2015-06-04 20:58:33 +0100
commita6b6bb2aac59db3b390a3155ee4b25ebfef76ce9 (patch)
tree2959ae63bc32e7bfa850c8482366b77ee6a3352e /sw
parent56763e94bf6f59dde3e33e522553eb39b77e81a2 (diff)
coverity#1302656 Unchecked dynamic_cast
Change-Id: If84fc54892bbe65799b3bc344c700bb43bedc0cd
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/unocore/unochart.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/unocore/unochart.cxx b/sw/source/core/unocore/unochart.cxx
index 33a0b27e65ad..bf96c15a239c 100644
--- a/sw/source/core/unocore/unochart.cxx
+++ b/sw/source/core/unocore/unochart.cxx
@@ -1947,7 +1947,7 @@ SwChartDataSequence::SwChartDataSequence( const SwChartDataSequence &rObj ) :
aColLabelText( SW_RES(STR_CHART2_COL_LABEL_TEXT) ),
xDataProvider( rObj.pDataProvider ),
pDataProvider( rObj.pDataProvider ),
- pTableCrsr( dynamic_cast<SwUnoTableCrsr*>(rObj.pTableCrsr.get())->Clone() ),
+ pTableCrsr( dynamic_cast<SwUnoTableCrsr&>(*rObj.pTableCrsr.get()).Clone() ),
aCursorDepend( this, pTableCrsr.get() ),
_pPropSet( rObj._pPropSet )
{
@@ -2032,7 +2032,7 @@ uno::Sequence< uno::Any > SAL_CALL SwChartDataSequence::getData()
// keep original cursor and make copy of it that gets handed
// over to the SwXCellRange object which takes ownership and
// thus will destroy the copy later.
- SwXCellRange aRange( dynamic_cast<SwUnoTableCrsr*>(pTableCrsr.get())->Clone(), *pTableFormat, aDesc );
+ SwXCellRange aRange( dynamic_cast<SwUnoTableCrsr&>(*pTableCrsr.get()).Clone(), *pTableFormat, aDesc );
aRange.GetDataSequence( &aRes, 0, 0 );
}
}