summaryrefslogtreecommitdiff
path: root/sw/source/core/unocore/unochart.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-07-20 13:30:53 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-07-20 17:59:32 +0200
commit586cfef1df9fb99aaf018029b7f06363e96bc72b (patch)
treedc4be0619ab5fccdf1e8e8780ddcdfa022e2f0eb /sw/source/core/unocore/unochart.cxx
parentf44bd7bb0ce23535f5e0ced7966677f4fff943fc (diff)
loplugin:referencecasting in sw
Change-Id: Ib5de4377b22815ba718559ff6fcfd6ab5a0547a6 Reviewed-on: https://gerrit.libreoffice.org/75999 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/core/unocore/unochart.cxx')
-rw-r--r--sw/source/core/unocore/unochart.cxx11
1 files changed, 5 insertions, 6 deletions
diff --git a/sw/source/core/unocore/unochart.cxx b/sw/source/core/unocore/unochart.cxx
index eb81443bf984..b8b4cf4a7148 100644
--- a/sw/source/core/unocore/unochart.cxx
+++ b/sw/source/core/unocore/unochart.cxx
@@ -1016,8 +1016,8 @@ uno::Sequence< beans::PropertyValue > SAL_CALL SwChartDataProvider::detectArgume
OSL_FAIL("got NULL for XLabeledDataSequence from Data source");
continue;
}
- const uno::Reference< chart2::data::XDataSequence > xCurLabel( xLabeledDataSequence->getLabel(), uno::UNO_QUERY );
- const uno::Reference< chart2::data::XDataSequence > xCurValues( xLabeledDataSequence->getValues(), uno::UNO_QUERY );
+ const uno::Reference< chart2::data::XDataSequence > xCurLabel = xLabeledDataSequence->getLabel();
+ const uno::Reference< chart2::data::XDataSequence > xCurValues = xLabeledDataSequence->getValues();
// get sequence lengths for label and values.
// (0 length is Ok)
@@ -1475,12 +1475,11 @@ void SwChartDataProvider::DeleteBox( const SwTable *pTable, const SwTableBox &rB
bool bSeqDisposed = false;
// check if weak reference is still valid...
- uno::Reference< chart2::data::XDataSequence > xTemp(*aIt); // temporary needed for g++ 3.3.5
- uno::Reference< chart2::data::XDataSequence > xRef( xTemp, uno::UNO_QUERY );
- if (xRef.is())
+ uno::Reference< chart2::data::XDataSequence > xTemp(*aIt);
+ if (xTemp.is())
{
// then delete that table box (check if implementation cursor needs to be adjusted)
- pDataSeq = static_cast< SwChartDataSequence * >( xRef.get() );
+ pDataSeq = static_cast< SwChartDataSequence * >( xTemp.get() );
if (pDataSeq)
{
try