summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2010-12-05 12:02:24 +0000
committerCaolán McNamara <caolanm@redhat.com>2010-12-05 12:02:24 +0000
commit305762af91a60e8a0ab223ab2fe22427dff71f69 (patch)
tree4f386fe217352dd798a11c8466d8b85807d6f3b0
parent379b949329c3b599f4ba7b0bfd7c4e951bac1ede (diff)
cppcheck: can reduce the scope of these variables
-rw-r--r--sfx2/source/dialog/mgetempl.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/sfx2/source/dialog/mgetempl.cxx b/sfx2/source/dialog/mgetempl.cxx
index baa697441b..8cdc50fd2e 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();