diff options
author | Vladimir Glazounov <vg@openoffice.org> | 2003-05-13 11:30:13 +0000 |
---|---|---|
committer | Vladimir Glazounov <vg@openoffice.org> | 2003-05-13 11:30:13 +0000 |
commit | d7db7cbf604f6dd5419e934002142c2c8ffb4ee4 (patch) | |
tree | d779dc9d7bd90715ff54db517e271bc3d2400581 /sot | |
parent | 5067363b7cc6c9587a834247ee4c70258214e034 (diff) |
INTEGRATION: CWS calc08 (1.4.14); FILE MERGED
2003/05/07 17:45:09 er 1.4.14.1: #109386# operators new/delete mismatch (and deleting void* is undefined!)
Diffstat (limited to 'sot')
-rw-r--r-- | sot/source/sdstor/stgstrms.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sot/source/sdstor/stgstrms.cxx b/sot/source/sdstor/stgstrms.cxx index 4bc557ded0e0..cfbd91790ba3 100644 --- a/sot/source/sdstor/stgstrms.cxx +++ b/sot/source/sdstor/stgstrms.cxx @@ -2,9 +2,9 @@ * * $RCSfile: stgstrms.cxx,v $ * - * $Revision: 1.4 $ + * $Revision: 1.5 $ * - * last change: $Author: hr $ $Date: 2003-03-27 11:47:57 $ + * last change: $Author: vg $ $Date: 2003-05-13 12:30:13 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -1146,7 +1146,7 @@ void StgTmpStrm::SetSize( ULONG n ) ULONG i = nEndOfData; if( i ) { - void* p = new BYTE[ 4096 ]; + BYTE* p = new BYTE[ 4096 ]; Seek( 0L ); while( i ) { @@ -1157,7 +1157,7 @@ void StgTmpStrm::SetSize( ULONG n ) else break; } - delete p; + delete [] p; } if( !i && n > nEndOfData ) { |