summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2011-08-04 21:00:04 +0200
committerJulien Nabet <serval2412@yahoo.fr>2011-08-04 21:00:04 +0200
commit04b6e6777adecd1f809410ecdfa3c2eb931c54c3 (patch)
treefc708d588b6797bfc84a814d31bde30517db15b8
parentf3d07bb32bb4cd6ef69f802e4e02e35229d81847 (diff)
va_end closer of the va_start corresponding
-rw-r--r--svl/source/items/itemset.cxx1
-rw-r--r--svl/source/items/nranges.cxx2
2 files changed, 2 insertions, 1 deletions
diff --git a/svl/source/items/itemset.cxx b/svl/source/items/itemset.cxx
index 3be762d646..0ca722382e 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 52946c0182..b1206f5df2 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);
}