[Libreoffice-commits] .: sfx2/source

Caolán McNamara caolan at kemper.freedesktop.org
Sun Dec 5 04:02:29 PST 2010


 sfx2/source/dialog/mgetempl.cxx |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit 305762af91a60e8a0ab223ab2fe22427dff71f69
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Sun Dec 5 12:02:24 2010 +0000

    cppcheck: can reduce the scope of these variables

diff --git a/sfx2/source/dialog/mgetempl.cxx b/sfx2/source/dialog/mgetempl.cxx
index baa6974..8cdc50f 100644
--- a/sfx2/source/dialog/mgetempl.cxx
+++ b/sfx2/source/dialog/mgetempl.cxx
@@ -204,10 +204,9 @@ SfxManageStyleSheetPage::SfxManageStyleSheetPage( Window* pParent, const SfxItem
             break;
     }
 
-    USHORT nStyleFilterIdx = 0xffff;
-
     if ( i < nCount )
     {
+        USHORT nStyleFilterIdx = 0xffff;
         // Filterflags
         const SfxStyleFilter& rList = pItem->GetFilterList();
         nCount = (USHORT)rList.Count();


More information about the Libreoffice-commits mailing list