summaryrefslogtreecommitdiff
path: root/chart2/source/tools
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-04-06 21:45:37 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-04-07 08:31:20 +0200
commit5366cadd6cda9b3c7b4b549a0c9b8c895ea47843 (patch)
treec5d7c483ea1e06e7810574015bf5ac3eebe9995d /chart2/source/tools
parent2e45a11aa1340a07a13a463e765f741af594d731 (diff)
loplugin:unusedvariableplus in chart2
Change-Id: I8bb958718f71b52819755f3af6d5fcff4af1f596 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/91782 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'chart2/source/tools')
-rw-r--r--chart2/source/tools/ObjectIdentifier.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/chart2/source/tools/ObjectIdentifier.cxx b/chart2/source/tools/ObjectIdentifier.cxx
index 3c2c45a19e74..c0fc94ec1326 100644
--- a/chart2/source/tools/ObjectIdentifier.cxx
+++ b/chart2/source/tools/ObjectIdentifier.cxx
@@ -621,11 +621,10 @@ OUString ObjectIdentifier::createParticleForSeries(
return aRet.makeStringAndClear();
}
-OUString ObjectIdentifier::createParticleForLegend( ChartModel& rModel )
+OUString ObjectIdentifier::createParticleForLegend( ChartModel& )
{
OUStringBuffer aRet;
- Reference< XDiagram > xDiagram( rModel.getFirstDiagram() );
//todo: if more than one diagram is implemented, find the correct diagram which is owner of the given legend
aRet.append( ObjectIdentifier::createParticleForDiagram() );
@@ -637,11 +636,10 @@ OUString ObjectIdentifier::createParticleForLegend( ChartModel& rModel )
}
OUString ObjectIdentifier::createParticleForLegend(
- const Reference< frame::XModel >& xChartModel )
+ const Reference< frame::XModel >& )
{
OUStringBuffer aRet;
- Reference< XDiagram > xDiagram( ChartModelHelper::findDiagram( xChartModel ) );
//todo: if more than one diagram is implemented, find the correct diagram which is owner of the given legend
aRet.append( ObjectIdentifier::createParticleForDiagram() );