summaryrefslogtreecommitdiff
path: root/svl
diff options
context:
space:
mode:
authorobo <obo@openoffice.org>2010-06-15 10:26:12 +0200
committerobo <obo@openoffice.org>2010-06-15 10:26:12 +0200
commit11ca51711d56f1606f0b113bef4811b4d20d4128 (patch)
tree871678a5a009d17b63ea1b8fa3c5b2ca8119120a /svl
parent96e2acd4ec40ff2948c09ca17229feb793208e0d (diff)
parenta812215af2cee88810d128e50d65448b99ef1cc0 (diff)
CWS-TOOLING: integrate CWS fwk139
Diffstat (limited to 'svl')
-rw-r--r--svl/source/items/nranges.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/svl/source/items/nranges.cxx b/svl/source/items/nranges.cxx
index ae633276300f..813c1fec8ebd 100644
--- a/svl/source/items/nranges.cxx
+++ b/svl/source/items/nranges.cxx
@@ -480,6 +480,7 @@ SfxNumRanges& SfxNumRanges::operator -=
NUMTYPE nThisSize = Count_Impl(_pRanges);
NUMTYPE nTargetSize = 1 + ( nThisSize + Count_Impl(rRanges._pRanges) );
NUMTYPE *pTarget = new NUMTYPE[ nTargetSize ];
+ memset( pTarget, 0, sizeof(NUMTYPE)*nTargetSize );
memcpy( pTarget, _pRanges, sizeof(NUMTYPE)*nThisSize );
NUMTYPE nPos1 = 0, nPos2 = 0, nTargetPos = 0;
@@ -689,6 +690,7 @@ SfxNumRanges& SfxNumRanges::operator /=
NUMTYPE nThisSize = Count_Impl(_pRanges);
NUMTYPE nTargetSize = 1 + ( nThisSize + Count_Impl(rRanges._pRanges) );
NUMTYPE *pTarget = new NUMTYPE[ nTargetSize ];
+ memset( pTarget, 0, sizeof(NUMTYPE)*nTargetSize );
memcpy( pTarget, _pRanges, sizeof(NUMTYPE)*nThisSize );
NUMTYPE nPos1 = 0, nPos2 = 0, nTargetPos = 0;