[PATCH 2/2] narrowed a variable's scope

Takeshi Abe tabe at fixedpoint.jp
Thu Jan 27 00:30:37 PST 2011


---
 sd/source/core/EffectMigration.cxx |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/sd/source/core/EffectMigration.cxx b/sd/source/core/EffectMigration.cxx
index 7f98a0d..3680f2a 100644
--- a/sd/source/core/EffectMigration.cxx
+++ b/sd/source/core/EffectMigration.cxx
@@ -977,8 +977,6 @@ void EffectMigration::SetDimHide( SvxShape* pShape, sal_Bool bDimHide )
     if( implIsInsideGroup( pObj ) )
         return;
 
-    Any aEmpty;
-
     sd::MainSequencePtr pMainSequence = static_cast<SdPage*>(pObj->GetPage())->getMainSequence();
 
     const Reference< XShape > xShape( pShape );
@@ -992,8 +990,10 @@ void EffectMigration::SetDimHide( SvxShape* pShape, sal_Bool bDimHide )
         if( pEffect->getTargetShape() == xShape )
         {
             pEffect->setHasAfterEffect( bDimHide ? true : false );
-            if( bDimHide )
+            if( bDimHide ) {
+                Any aEmpty;
                 pEffect->setDimColor( aEmpty );
+            }
             pEffect->setAfterEffectOnNext( false );
             bNeedRebuild = true;
         }
-- 
1.7.2.3


----Next_Part(Thu_Jan_27_19_12_36_2011_402)----


More information about the LibreOffice mailing list