diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2011-08-04 21:00:04 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2011-08-04 21:00:04 +0200 |
commit | 9a807aeb49487180ae47e6755252ef1dc52d73ec (patch) | |
tree | 6c88b6c9e7ffec734f72bd06733f500c8ad70608 | |
parent | e8ced5594bc7e7e628997ce5ddd3ab56b817be4e (diff) |
va_end closer of the va_start corresponding
-rw-r--r-- | svl/source/items/itemset.cxx | 1 | ||||
-rw-r--r-- | svl/source/items/nranges.cxx | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/svl/source/items/itemset.cxx b/svl/source/items/itemset.cxx index 147d90b0ea09..00cd003f8aaf 100644 --- a/svl/source/items/itemset.cxx +++ b/svl/source/items/itemset.cxx @@ -225,6 +225,7 @@ SfxItemSet::SfxItemSet( SfxItemPool& rPool, pArgs, sal::static_int_cast< sal_uInt16 >(nWh1), sal::static_int_cast< sal_uInt16 >(nWh2), sal::static_int_cast< sal_uInt16 >(nNull)); + va_end(pArgs); } } diff --git a/svl/source/items/nranges.cxx b/svl/source/items/nranges.cxx index db0dc169c9dc..0b8942ccf736 100644 --- a/svl/source/items/nranges.cxx +++ b/svl/source/items/nranges.cxx @@ -93,7 +93,6 @@ NUMTYPE InitializeRanges_Impl( NUMTYPE *&rpRanges, va_list pArgs, nSize += nIns - aNumArr[ nCnt-2 ] + 1; } } - va_end( pArgs ); DBG_ASSERT( 0 == (nCnt & 1), "ungerade Anzahl von Which-Paaren!" ); @@ -208,6 +207,7 @@ SfxNumRanges::SfxNumRanges( NUMTYPE_ARG nWh0, NUMTYPE_ARG nWh1, NUMTYPE_ARG nNul _pRanges, pArgs, sal::static_int_cast< NUMTYPE >(nWh0), sal::static_int_cast< NUMTYPE >(nWh1), sal::static_int_cast< NUMTYPE >(nNull)); + va_end(pArgs); DBG_CHECK_RANGES(NUMTYPE, _pRanges); } |