Kaydet (Commit) 7fd544da authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1302664 Unchecked dynamic_cast

and

coverity#1302661 Unchecked dynamic_cast

Change-Id: I29735d3627c9d600465c02482002134cd196e098
üst 7e5d98c4
...@@ -2192,7 +2192,7 @@ uno::Sequence< OUString > SAL_CALL SwChartDataSequence::getTextualData() ...@@ -2192,7 +2192,7 @@ uno::Sequence< OUString > SAL_CALL SwChartDataSequence::getTextualData()
// keep original cursor and make copy of it that gets handed // keep original cursor and make copy of it that gets handed
// over to the SwXCellRange object which takes ownership and // over to the SwXCellRange object which takes ownership and
// thus will destroy the copy later. // 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 ); aRange.GetDataSequence( 0, &aRes, 0 );
} }
} }
...@@ -2221,7 +2221,7 @@ uno::Sequence< double > SAL_CALL SwChartDataSequence::getNumericalData() ...@@ -2221,7 +2221,7 @@ uno::Sequence< double > SAL_CALL SwChartDataSequence::getNumericalData()
// keep original cursor and make copy of it that gets handed // keep original cursor and make copy of it that gets handed
// over to the SwXCellRange object which takes ownership and // over to the SwXCellRange object which takes ownership and
// thus will destroy the copy later. // 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 // get numerical values and make an effort to return the
// numerical value for text formatted cells // numerical value for text formatted cells
......
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