From ab176ed3ad1d69edc9d18bf71eeb2e75313fc362 Mon Sep 17 00:00:00 2001 From: Jochen Nitschke Date: Sat, 30 Jun 2018 20:33:38 +0200 Subject: cppcheck: variableScope Change-Id: I7c90978dba2e751303244785a38fe251bd955224 Reviewed-on: https://gerrit.libreoffice.org/56766 Tested-by: Jenkins Reviewed-by: Jochen Nitschke --- xmloff/source/draw/ximpcustomshape.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xmloff') diff --git a/xmloff/source/draw/ximpcustomshape.cxx b/xmloff/source/draw/ximpcustomshape.cxx index f8fc8b05a58d..f84c1e976dd5 100644 --- a/xmloff/source/draw/ximpcustomshape.cxx +++ b/xmloff/source/draw/ximpcustomshape.cxx @@ -905,9 +905,9 @@ void XMLEnhancedCustomShapeContext::StartElement( const uno::Reference< xml::sax sal_Int32 nIndex = 0; css::drawing::EnhancedCustomShapeParameterPair aParameterPair; css::drawing::EnhancedCustomShapeParameter& rDepth = aParameterPair.First; - css::drawing::EnhancedCustomShapeParameter& rFraction = aParameterPair.Second; if ( GetNextParameter( rDepth, nIndex, rValue ) ) { + css::drawing::EnhancedCustomShapeParameter& rFraction = aParameterPair.Second; // try to catch the unit for the depth sal_Int16 const eSrcUnit( ::sax::Converter::GetUnitFromString( -- cgit