diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-05-31 20:32:18 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-06-01 17:41:21 +0100 |
commit | 7fd544da2ef2f472a3aaa825c3cacfe28961e9db (patch) | |
tree | 926e71e9ce38608ec7d1bd3c4afbb683bb62b73c | |
parent | 7e5d98c427cdcd10566b8f5a7a35c0561ec82d72 (diff) |
coverity#1302664 Unchecked dynamic_cast
and
coverity#1302661 Unchecked dynamic_cast
Change-Id: I29735d3627c9d600465c02482002134cd196e098
-rw-r--r-- | sw/source/core/unocore/unochart.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/unocore/unochart.cxx b/sw/source/core/unocore/unochart.cxx index 161ee5f7b76a..33a0b27e65ad 100644 --- a/sw/source/core/unocore/unochart.cxx +++ b/sw/source/core/unocore/unochart.cxx @@ -2192,7 +2192,7 @@ uno::Sequence< OUString > SAL_CALL SwChartDataSequence::getTextualData() // 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( 0, &aRes, 0 ); } } @@ -2221,7 +2221,7 @@ uno::Sequence< double > SAL_CALL SwChartDataSequence::getNumericalData() // 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 ); // get numerical values and make an effort to return the // numerical value for text formatted cells |