summaryrefslogtreecommitdiff
path: root/svl
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2011-09-13 23:00:56 +0200
committerJulien Nabet <serval2412@yahoo.fr>2011-09-13 23:00:56 +0200
commit689bde97d1a249c679a16f084043256868cd4978 (patch)
tree4c696358ec0080aef80094a3d8436eacec1b1ca5 /svl
parent81607ad3e7dfa8337aab162c7602a99743d23e0e (diff)
Some cppcheck cleaning
Diffstat (limited to 'svl')
-rw-r--r--svl/source/items/itemset.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/svl/source/items/itemset.cxx b/svl/source/items/itemset.cxx
index 00cd003f8aaf..0dba3050e2fb 100644
--- a/svl/source/items/itemset.cxx
+++ b/svl/source/items/itemset.cxx
@@ -807,11 +807,12 @@ void SfxItemSet::SetRanges( const sal_uInt16 *pNewRanges )
// create new item-array (by iterating through all new ranges)
sal_uLong nSize = Capacity_Impl(pNewRanges);
SfxItemArray aNewItems = new const SfxPoolItem* [ nSize ];
- sal_uInt16 n = 0, nNewCount = 0;
+ sal_uInt16 nNewCount = 0;
if ( _nCount == 0 )
memset( aNewItems, 0, nSize * sizeof( SfxPoolItem* ) );
else
{
+ sal_uInt16 n = 0;
for ( const sal_uInt16 *pRange = pNewRanges; *pRange; pRange += 2 )
{
// iterate through all ids in the range