From 9b010ed70ef9468d5f0d89c44738e63df3c3c57d Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Sun, 14 Jun 2015 21:22:08 +0100 Subject: cppcheck: variableScope Change-Id: Idbf5301d17d413077c7dc436a6f140a412ae71cd --- svx/source/xoutdev/xattr.cxx | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/svx/source/xoutdev/xattr.cxx b/svx/source/xoutdev/xattr.cxx index a46bfe9a7923..d83941c95022 100644 --- a/svx/source/xoutdev/xattr.cxx +++ b/svx/source/xoutdev/xattr.cxx @@ -855,12 +855,12 @@ bool XLineDashItem::PutValue( const ::com::sun::star::uno::Any& rVal, sal_uInt8 case 0: { uno::Sequence< beans::PropertyValue > aPropSeq; - ::com::sun::star::drawing::LineDash aLineDash; - OUString aName; - bool bLineDash( false ); if ( rVal >>= aPropSeq ) { + css::drawing::LineDash aLineDash; + OUString aName; + bool bLineDash( false ); for ( sal_Int32 n = 0; n < aPropSeq.getLength(); n++ ) { if ( aPropSeq[n].Name == "Name" ) @@ -2591,12 +2591,12 @@ bool XFillGradientItem::PutValue( const ::com::sun::star::uno::Any& rVal, sal_uI case 0: { uno::Sequence< beans::PropertyValue > aPropSeq; - ::com::sun::star::awt::Gradient aGradient2; - OUString aName; - bool bGradient( false ); if ( rVal >>= aPropSeq ) { + css::awt::Gradient aGradient2; + OUString aName; + bool bGradient( false ); for ( sal_Int32 n = 0; n < aPropSeq.getLength(); n++ ) { if ( aPropSeq[n].Name == "Name" ) @@ -3046,12 +3046,11 @@ bool XFillHatchItem::PutValue( const ::com::sun::star::uno::Any& rVal, sal_uInt8 case 0: { uno::Sequence< beans::PropertyValue > aPropSeq; - ::com::sun::star::drawing::Hatch aUnoHatch; - OUString aName; - bool bHatch( false ); - if ( rVal >>= aPropSeq ) { + css::drawing::Hatch aUnoHatch; + OUString aName; + bool bHatch( false ); for ( sal_Int32 n = 0; n < aPropSeq.getLength(); n++ ) { if ( aPropSeq[n].Name == "Name" ) -- cgit