[Libreoffice-commits] .: svl/source
Julien Nabet
serval2412 at kemper.freedesktop.org
Thu Aug 4 12:00:33 PDT 2011
svl/source/items/itemset.cxx | 1 +
svl/source/items/nranges.cxx | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
New commits:
commit 04b6e6777adecd1f809410ecdfa3c2eb931c54c3
Author: Julien Nabet <serval2412 at yahoo.fr>
Date: Thu Aug 4 21:00:04 2011 +0200
va_end closer of the va_start corresponding
diff --git a/svl/source/items/itemset.cxx b/svl/source/items/itemset.cxx
index 3be762d..0ca7223 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 52946c0..b1206f5 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);
}
More information about the Libreoffice-commits
mailing list