diff options
author | Mathias Bauer <mba@openoffice.org> | 2002-07-22 11:28:46 +0000 |
---|---|---|
committer | Mathias Bauer <mba@openoffice.org> | 2002-07-22 11:28:46 +0000 |
commit | a793ecd5e4c7dedc99e97c500254efcf7b7adb14 (patch) | |
tree | e4147658df659e075e963a7b5685e90cd212ac25 /sot | |
parent | 510ae2ed8307ff918940f36dd19120422f94758d (diff) |
#90353#: new/delete
Diffstat (limited to 'sot')
-rw-r--r-- | sot/source/base/factory.cxx | 8 | ||||
-rw-r--r-- | sot/source/sdstor/stgcache.cxx | 6 | ||||
-rw-r--r-- | sot/source/sdstor/stgdir.cxx | 6 | ||||
-rw-r--r-- | sot/source/sdstor/stgole.cxx | 6 | ||||
-rw-r--r-- | sot/source/sdstor/stgstrms.cxx | 6 | ||||
-rw-r--r-- | sot/source/sdstor/storinfo.cxx | 6 |
6 files changed, 19 insertions, 19 deletions
diff --git a/sot/source/base/factory.cxx b/sot/source/base/factory.cxx index 3d71f4619731..032e30d1419b 100644 --- a/sot/source/base/factory.cxx +++ b/sot/source/base/factory.cxx @@ -2,9 +2,9 @@ * * $RCSfile: factory.cxx,v $ * - * $Revision: 1.4 $ + * $Revision: 1.5 $ * - * last change: $Author: jl $ $Date: 2001-07-30 10:22:08 $ + * last change: $Author: mba $ $Date: 2002-07-22 12:28:38 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -219,7 +219,7 @@ SotFactory::SotFactory( const SvGlobalName & rName, //========================================================================= SotFactory::~SotFactory() { - delete (void*)pSuperClasses; + delete [] pSuperClasses; } @@ -276,7 +276,7 @@ void SotFactory::PutSuperClass( const SotFactory * pFact ) const SotFactory ** pTmp = new const SotFactory * [ nSuperCount ]; memcpy( (void *)pTmp, (void *)pSuperClasses, sizeof( void * ) * (nSuperCount -1) ); - delete (void *)pSuperClasses; + delete [] pSuperClasses; pSuperClasses = pTmp; } pSuperClasses[ nSuperCount -1 ] = pFact; diff --git a/sot/source/sdstor/stgcache.cxx b/sot/source/sdstor/stgcache.cxx index c5381f69a540..a6d81de285a5 100644 --- a/sot/source/sdstor/stgcache.cxx +++ b/sot/source/sdstor/stgcache.cxx @@ -2,9 +2,9 @@ * * $RCSfile: stgcache.cxx,v $ * - * $Revision: 1.1.1.1 $ + * $Revision: 1.2 $ * - * last change: $Author: hr $ $Date: 2000-09-18 16:56:51 $ + * last change: $Author: mba $ $Date: 2002-07-22 12:28:40 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -124,7 +124,7 @@ StgPage::StgPage( StgCache* p, short n ) StgPage::~StgPage() { - delete pData; + delete [] pData; } void StgPage::SetPage( short nOff, INT32 nVal ) diff --git a/sot/source/sdstor/stgdir.cxx b/sot/source/sdstor/stgdir.cxx index 1f7ef879615c..75dca8a8f1b8 100644 --- a/sot/source/sdstor/stgdir.cxx +++ b/sot/source/sdstor/stgdir.cxx @@ -2,9 +2,9 @@ * * $RCSfile: stgdir.cxx,v $ * - * $Revision: 1.3 $ + * $Revision: 1.4 $ * - * last change: $Author: mm $ $Date: 2001-09-06 10:50:06 $ + * last change: $Author: mba $ $Date: 2002-07-22 12:28:41 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -712,7 +712,7 @@ BOOL StgDirEntry::Tmp2Strm() break; n -= nn; } - delete p; + delete [] p; if( n ) { pTmpStrm->Seek( nPos ); diff --git a/sot/source/sdstor/stgole.cxx b/sot/source/sdstor/stgole.cxx index 3060f832a96e..f12149683cfa 100644 --- a/sot/source/sdstor/stgole.cxx +++ b/sot/source/sdstor/stgole.cxx @@ -2,9 +2,9 @@ * * $RCSfile: stgole.cxx,v $ * - * $Revision: 1.3 $ + * $Revision: 1.4 $ * - * last change: $Author: mba $ $Date: 2000-12-01 11:39:03 $ + * last change: $Author: mba $ $Date: 2002-07-22 12:28:43 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -184,7 +184,7 @@ BOOL StgCompObjStream::Load() } else SetError( SVSTREAM_GENERALERROR ); - delete p; + delete [] p; } return BOOL( GetError() == SVSTREAM_OK ); } diff --git a/sot/source/sdstor/stgstrms.cxx b/sot/source/sdstor/stgstrms.cxx index 31ac35af134f..afca5d0d3044 100644 --- a/sot/source/sdstor/stgstrms.cxx +++ b/sot/source/sdstor/stgstrms.cxx @@ -2,9 +2,9 @@ * * $RCSfile: stgstrms.cxx,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: mm $ $Date: 2000-10-12 16:18:51 $ + * last change: $Author: mba $ $Date: 2002-07-22 12:28:44 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -1099,7 +1099,7 @@ BOOL StgTmpStrm::Copy( StgTmpStrm& rSrc ) break; n -= nn; } - delete p; + delete [] p; rSrc.Seek( nCur ); Seek( nCur ); return BOOL( n == 0 ); diff --git a/sot/source/sdstor/storinfo.cxx b/sot/source/sdstor/storinfo.cxx index 04aef46f9bab..0e4bc19a18eb 100644 --- a/sot/source/sdstor/storinfo.cxx +++ b/sot/source/sdstor/storinfo.cxx @@ -2,9 +2,9 @@ * * $RCSfile: storinfo.cxx,v $ * - * $Revision: 1.1.1.1 $ + * $Revision: 1.2 $ * - * last change: $Author: hr $ $Date: 2000-09-18 16:56:52 $ + * last change: $Author: mba $ $Date: 2002-07-22 12:28:46 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -99,7 +99,7 @@ ULONG ReadClipboardFormat( SvStream & rStm ) } else rStm.SetError( SVSTREAM_GENERALERROR ); - delete p; + delete [] p; } else if( nLen == -1L ) // Windows clipboard format |