diff options
author | Michael Weghorn <m.weghorn@posteo.de> | 2014-12-06 21:35:03 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2014-12-06 22:29:49 +0000 |
commit | 3948dee43526998b2e70dfe6ec2e4e46ef829abd (patch) | |
tree | f69a21941958bf548bea0aa8ac282f8fbcd5667d /chart2/source/tools/AxisHelper.cxx | |
parent | aafcbb3e1e70642983152f79843b2f0cd15eb79c (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.cxx | 2 |
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 ); |