diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2011-09-13 23:00:56 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2011-09-13 23:00:56 +0200 |
commit | 689bde97d1a249c679a16f084043256868cd4978 (patch) | |
tree | 4c696358ec0080aef80094a3d8436eacec1b1ca5 /svl/source/items | |
parent | 81607ad3e7dfa8337aab162c7602a99743d23e0e (diff) |
Some cppcheck cleaning
Diffstat (limited to 'svl/source/items')
-rw-r--r-- | svl/source/items/itemset.cxx | 3 |
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 |