summaryrefslogtreecommitdiff
path: root/svx/source/xoutdev
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-06-14 21:22:08 +0100
committerCaolán McNamara <caolanm@redhat.com>2015-06-15 11:11:43 +0100
commit9b010ed70ef9468d5f0d89c44738e63df3c3c57d (patch)
tree43997490b49246bacd24a10377942a473489cb25 /svx/source/xoutdev
parentac34f33dca9d9e4a83e64f70ed0f395a157f0325 (diff)
cppcheck: variableScope
Change-Id: Idbf5301d17d413077c7dc436a6f140a412ae71cd
Diffstat (limited to 'svx/source/xoutdev')
-rw-r--r--svx/source/xoutdev/xattr.cxx19
1 files 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" )