diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-07-20 18:27:27 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-07-21 08:51:00 +0200 |
commit | 3284309f19bc76f1778988c5314a795a95620e71 (patch) | |
tree | f8c4cee5861bccdfc4b86bc080bf988d3fe78c9f /xmloff/source/chart/SchXMLPlotAreaContext.cxx | |
parent | f9b5657c4cff29f4a0cd65d2789e091f1297a152 (diff) |
loplugin:referencecasting in xmloff
Change-Id: Iac3d56511aacec73bc38f57890c44145a4c13b85
Reviewed-on: https://gerrit.libreoffice.org/76034
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmloff/source/chart/SchXMLPlotAreaContext.cxx')
-rw-r--r-- | xmloff/source/chart/SchXMLPlotAreaContext.cxx | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/xmloff/source/chart/SchXMLPlotAreaContext.cxx b/xmloff/source/chart/SchXMLPlotAreaContext.cxx index 1cf2785030a1..342fd37bdb90 100644 --- a/xmloff/source/chart/SchXMLPlotAreaContext.cxx +++ b/xmloff/source/chart/SchXMLPlotAreaContext.cxx @@ -170,7 +170,7 @@ SchXMLPlotAreaContext::SchXMLPlotAreaContext( m_rbHasRangeAtPlotArea = false; // get Diagram - uno::Reference< chart::XChartDocument > xDoc( rImpHelper.GetChartDocument(), uno::UNO_QUERY ); + uno::Reference< chart::XChartDocument > xDoc = rImpHelper.GetChartDocument(); if( xDoc.is()) { mxDiagram = xDoc->getDiagram(); @@ -785,10 +785,9 @@ void SchXMLWallFloorContext::StartElement( const uno::Reference< xml::sax::XAttr } // set properties - uno::Reference< beans::XPropertySet > xProp( ( meContextType == CONTEXT_TYPE_WALL ) + uno::Reference< beans::XPropertySet > xProp = ( meContextType == CONTEXT_TYPE_WALL ) ? mxWallFloorSupplier->getWall() - : mxWallFloorSupplier->getFloor(), - uno::UNO_QUERY ); + : mxWallFloorSupplier->getFloor(); if (!sAutoStyleName.isEmpty()) mrImportHelper.FillAutoStyle(sAutoStyleName, xProp); @@ -1106,8 +1105,7 @@ void SchXMLStatisticsObjectContext::StartElement( const uno::Reference< xml::sax { aStyle.meType = DataRowPointStyle::ERROR_INDICATOR; - uno::Reference< lang::XMultiServiceFactory > xFact( comphelper::getProcessServiceFactory(), - uno::UNO_QUERY ); + uno::Reference< lang::XMultiServiceFactory > xFact = comphelper::getProcessServiceFactory(); uno::Reference< beans::XPropertySet > xBarProp( xFact->createInstance("com.sun.star.chart2.ErrorBar" ), uno::UNO_QUERY ); |