[Libreoffice-commits] .: filter/source

Kevin Hunter hunteke at kemper.freedesktop.org
Wed May 30 00:11:22 PDT 2012


 filter/source/msfilter/msdffimp.cxx |    5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

New commits:
commit ddc36f8914640d6d75464ab26690b72504469fa0
Author: Kevin Hunter <hunteke at earlham.edu>
Date:   Wed May 30 03:09:12 2012 -0400

    cppcheck: Reduce variable scope
    
    Change-Id: I11f7642346ccc1949d5716b32444df86541eabf8

diff --git a/filter/source/msfilter/msdffimp.cxx b/filter/source/msfilter/msdffimp.cxx
index 9d5e1dc..b5c27bd 100644
--- a/filter/source/msfilter/msdffimp.cxx
+++ b/filter/source/msfilter/msdffimp.cxx
@@ -4326,15 +4326,14 @@ SdrObject* SvxMSDffManager::ImportGroup( const DffRecordHeader& rHd, SvStream& r
     rSt >> aRecHd;
     if ( aRecHd.nRecType == DFF_msofbtSpContainer )
     {
-        sal_Int32 nGroupRotateAngle = 0;
-        sal_Int32 nSpFlags = 0;
         mnFix16Angle = 0;
         if (!aRecHd.SeekToBegOfRecord(rSt))
             return pRet;
         pRet = ImportObj( rSt, pClientData, rClientRect, rGlobalChildRect, nCalledByGroup + 1, pShapeId );
         if ( pRet )
         {
-            nSpFlags = nGroupShapeFlags;
+            sal_Int32 nGroupRotateAngle = 0;
+            sal_Int32 nSpFlags = nGroupShapeFlags;
             nGroupRotateAngle = mnFix16Angle;
 
             Rectangle aClientRect( rClientRect );


More information about the Libreoffice-commits mailing list