[Libreoffice-commits] core.git: sw/source

Caolán McNamara caolanm at redhat.com
Sat Jan 24 09:17:35 PST 2015


 sw/source/core/unocore/unostyle.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit b59b2372503e15a52bc0d2e7f35b74ff72dc9256
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Sat Jan 24 17:13:52 2015 +0000

    cppcheck: scope can be reduced
    
    Change-Id: I792745e18bdf026c91a83186cc18bc592475844a

diff --git a/sw/source/core/unocore/unostyle.cxx b/sw/source/core/unocore/unostyle.cxx
index f56e396..6b64b84 100644
--- a/sw/source/core/unocore/unostyle.cxx
+++ b/sw/source/core/unocore/unostyle.cxx
@@ -3723,8 +3723,6 @@ uno::Sequence< uno::Any > SAL_CALL SwXPageStyle::GetPropertyValues_Impl(
             }
 
             sal_uInt16 nRes = 0;
-            bool bLeft = false;
-            bool bFirst = false;
             const sal_uInt8 nMemberId(pEntry->nMemberId & (~SFX_METRIC_ITEM));
 
             switch(pEntry->nWID)
@@ -3853,6 +3851,8 @@ uno::Sequence< uno::Any > SAL_CALL SwXPageStyle::GetPropertyValues_Impl(
                 {
                     //UUUU cleanups for readability (undos removed, rearranged)
                     bool bHeader(false);
+                    bool bLeft(false);
+                    bool bFirst(false);
 
                     switch(pEntry->nWID)
                     {


More information about the Libreoffice-commits mailing list