summaryrefslogtreecommitdiff
path: root/chart2/source/tools/AxisHelper.cxx
diff options
context:
space:
mode:
authorMichael Weghorn <m.weghorn@posteo.de>2014-12-06 21:35:03 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2014-12-06 22:29:49 +0000
commit3948dee43526998b2e70dfe6ec2e4e46ef829abd (patch)
treef69a21941958bf548bea0aa8ac282f8fbcd5667d /chart2/source/tools/AxisHelper.cxx
parentaafcbb3e1e70642983152f79843b2f0cd15eb79c (diff)
reduce scope of local variables
This addresses some cppcheck warnings. Change-Id: I864a4e84326633d33f09324247cbe439fba801c8 Reviewed-on: https://gerrit.libreoffice.org/13336 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'chart2/source/tools/AxisHelper.cxx')
-rw-r--r--chart2/source/tools/AxisHelper.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/chart2/source/tools/AxisHelper.cxx b/chart2/source/tools/AxisHelper.cxx
index d60b0311c07c..5da75f39f45a 100644
--- a/chart2/source/tools/AxisHelper.cxx
+++ b/chart2/source/tools/AxisHelper.cxx
@@ -823,9 +823,9 @@ std::vector< Reference< XAxis > > AxisHelper::getAllAxesOfCoordinateSystem(
try
{
Reference< XAxis > xAxis( xCooSys->getAxisByDimension( nDimensionIndex, nAxisIndex ) );
- bool bAddAxis = true;
if( xAxis.is() )
{
+ bool bAddAxis = true;
if( bOnlyVisible )
{
Reference< beans::XPropertySet > xAxisProp( xAxis, uno::UNO_QUERY );