summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorMathias Bauer <mba@openoffice.org>2002-07-23 12:48:12 +0000
committerMathias Bauer <mba@openoffice.org>2002-07-23 12:48:12 +0000
commit5acea3c390876da1df6402d718ec15aa0396f07e (patch)
tree4695765766d5e25a2fb48a6752717df1a8a937cf /sfx2
parent1f51679cb503276a50b8b2cb793f2e1b4645f358 (diff)
#90353#: delete []
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/bastyp/bitset.cxx16
-rw-r--r--sfx2/source/control/bindings.cxx6
2 files changed, 11 insertions, 11 deletions
diff --git a/sfx2/source/bastyp/bitset.cxx b/sfx2/source/bastyp/bitset.cxx
index 1e88ff5c1646..758d3a378605 100644
--- a/sfx2/source/bastyp/bitset.cxx
+++ b/sfx2/source/bastyp/bitset.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: bitset.cxx,v $
*
- * $Revision: 1.1.1.1 $
+ * $Revision: 1.2 $
*
- * last change: $Author: hr $ $Date: 2000-09-18 16:52:28 $
+ * last change: $Author: mba $ $Date: 2002-07-23 13:47:36 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -110,7 +110,7 @@ BitSet BitSet::operator<<( USHORT nOffset ) const
{
ULONG* pNewMap = new ULONG[nTarget];
memcpy( pNewMap, aSet.pBitmap, 4 * nTarget );
- delete aSet.pBitmap;
+ delete [] aSet.pBitmap;
aSet.pBitmap = pNewMap;
aSet.nBlocks = nTarget;
}
@@ -221,7 +221,7 @@ BitSet::BitSet( USHORT* pArray, USHORT nSize ):
BitSet::~BitSet()
{
DBG_MEMTEST();
- delete pBitmap;
+ delete [] pBitmap;
}
//--------------------------------------------------------------------
@@ -243,7 +243,7 @@ BitSet& BitSet::operator=( const BitSet& rOrig )
DBG_MEMTEST();
if ( this != &rOrig )
{
- delete pBitmap;
+ delete [] pBitmap;
CopyFrom(rOrig);
}
return *this;
@@ -256,7 +256,7 @@ BitSet& BitSet::operator=( const BitSet& rOrig )
BitSet& BitSet::operator=( USHORT nBit )
{
DBG_MEMTEST();
- delete pBitmap;
+ delete [] pBitmap;
USHORT nBlocks = nBit / 32;
ULONG nBitVal = 1L << (nBit % 32);
@@ -310,7 +310,7 @@ BitSet& BitSet::operator|=( const BitSet& rSet )
if ( pBitmap )
{
memcpy( pNewMap, pBitmap, 4 * nBlocks );
- delete pBitmap;
+ delete [] pBitmap;
}
pBitmap = pNewMap;
nBlocks = rSet.nBlocks;
@@ -347,7 +347,7 @@ BitSet& BitSet::operator|=( USHORT nBit )
if ( pBitmap )
{
memcpy( pNewMap, pBitmap, 4 * nBlocks );
- delete pBitmap;
+ delete [] pBitmap;
}
pBitmap = pNewMap;
nBlocks = nBlock+1;
diff --git a/sfx2/source/control/bindings.cxx b/sfx2/source/control/bindings.cxx
index fcd3621a46aa..6d47dcd4aa6d 100644
--- a/sfx2/source/control/bindings.cxx
+++ b/sfx2/source/control/bindings.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: bindings.cxx,v $
*
- * $Revision: 1.19 $
+ * $Revision: 1.20 $
*
- * last change: $Author: mba $ $Date: 2002-06-27 07:56:58 $
+ * last change: $Author: mba $ $Date: 2002-07-23 13:48:12 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -1898,7 +1898,7 @@ SfxItemSet* SfxBindings::CreateSet_Impl
}
pRanges[j] = 0; // terminierende NULL
SfxItemSet *pSet = new SfxItemSet(rPool, pRanges);
- delete pRanges;
+ delete [] pRanges;
DBG_PROFSTOP(SfxBindingsCreateSet);
return pSet;
}