summaryrefslogtreecommitdiffstats
path: root/chart2/source/tools/ThreeDHelper.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/ThreeDHelper.cxx
parentMove SfxInPlaceClientList to SfxViewShell_Impl. (diff)
downloadcore-3948dee43526998b2e70dfe6ec2e4e46ef829abd.tar.gz
core-3948dee43526998b2e70dfe6ec2e4e46ef829abd.zip
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/ThreeDHelper.cxx')
-rw-r--r--chart2/source/tools/ThreeDHelper.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/chart2/source/tools/ThreeDHelper.cxx b/chart2/source/tools/ThreeDHelper.cxx
index 068d3bedd004..1ae926115f24 100644
--- a/chart2/source/tools/ThreeDHelper.cxx
+++ b/chart2/source/tools/ThreeDHelper.cxx
@@ -46,9 +46,9 @@ namespace
bool lcl_isRightAngledAxesSetAndSupported( const Reference< beans::XPropertySet >& xSceneProperties )
{
- bool bRightAngledAxes = false;
if( xSceneProperties.is() )
{
+ bool bRightAngledAxes = false;
xSceneProperties->getPropertyValue( "RightAngledAxes") >>= bRightAngledAxes;
if(bRightAngledAxes)
{