diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-01-26 13:26:35 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-01-28 07:19:46 +0100 |
commit | 65f007c629e5a7b2710e21e3f26164b433576e27 (patch) | |
tree | d064b7c23ffe3948443fe1a4499a56308e01f97a /chart2/source | |
parent | 1446e097e76669c0d7749ec0f8918606d3cc4c28 (diff) |
remove some unused local vars
found by my new aggressive unused var plugin. these are unused return
values from function calls
Change-Id: I3359c583f535828f192cb833762dfedc008d82f0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87439
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'chart2/source')
-rw-r--r-- | chart2/source/controller/main/ChartController_Insert.cxx | 2 | ||||
-rw-r--r-- | chart2/source/view/main/VLegendSymbolFactory.cxx | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/chart2/source/controller/main/ChartController_Insert.cxx b/chart2/source/controller/main/ChartController_Insert.cxx index a8212bf99b27..1e4212a428cc 100644 --- a/chart2/source/controller/main/ChartController_Insert.cxx +++ b/chart2/source/controller/main/ChartController_Insert.cxx @@ -207,7 +207,7 @@ void ChartController::executeDispatch_InsertLegend() m_xUndoManager ); ChartModel& rModel = dynamic_cast<ChartModel&>(*getModel()); - Reference< chart2::XLegend > xLegend = LegendHelper::showLegend(rModel, m_xCC); + LegendHelper::showLegend(rModel, m_xCC); aUndoGuard.commit(); } diff --git a/chart2/source/view/main/VLegendSymbolFactory.cxx b/chart2/source/view/main/VLegendSymbolFactory.cxx index 88e21eb95d28..1ccc0de34324 100644 --- a/chart2/source/view/main/VLegendSymbolFactory.cxx +++ b/chart2/source/view/main/VLegendSymbolFactory.cxx @@ -112,8 +112,7 @@ Reference< drawing::XShape > VLegendSymbolFactory::createSymbol( return xResult; // add an invisible square box to maintain aspect ratio - Reference< drawing::XShape > xBound( pShapeFactory->createInvisibleRectangle( - xResultGroup, rEntryKeyAspectRatio )); + pShapeFactory->createInvisibleRectangle( xResultGroup, rEntryKeyAspectRatio ); // create symbol try |