diff options
author | Matthias Huetsch <mhu@openoffice.org> | 2002-05-10 20:17:12 +0000 |
---|---|---|
committer | Matthias Huetsch <mhu@openoffice.org> | 2002-05-10 20:17:12 +0000 |
commit | 1b94a3ef4769d699ba79754ed19444e4ad471f93 (patch) | |
tree | 0fa69fd8597ed874ab53c4f7b56ccb873e77d92f /svx/source/editeng/editdoc.cxx | |
parent | new version for SRX642 (diff) | |
download | core-1b94a3ef4769d699ba79754ed19444e4ad471f93.tar.gz core-1b94a3ef4769d699ba79754ed19444e4ad471f93.zip |
#i5181#,#90353# Fixed operator new[](), operator delete() mismatch,
Diffstat (limited to 'svx/source/editeng/editdoc.cxx')
-rw-r--r-- | svx/source/editeng/editdoc.cxx | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/svx/source/editeng/editdoc.cxx b/svx/source/editeng/editdoc.cxx index 2767893e2606..4e36e296e595 100644 --- a/svx/source/editeng/editdoc.cxx +++ b/svx/source/editeng/editdoc.cxx @@ -2,9 +2,9 @@ * * $RCSfile: editdoc.cxx,v $ * - * $Revision: 1.25 $ + * $Revision: 1.26 $ * - * last change: $Author: mt $ $Date: 2001-12-07 13:26:55 $ + * last change: $Author: mhu $ $Date: 2002-05-10 21:17:12 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -425,8 +425,7 @@ EditCharAttrib* MakeCharAttrib( SfxItemPool& rPool, const SfxPoolItem& rAttr, US return pNew; } - -// ------------------------------------------------------------------------- +// ------------------------------------------------------------------------- // class EditLine // ------------------------------------------------------------------------- @@ -474,9 +473,7 @@ EditLine* EditLine::Clone() const EditLine* pL = new EditLine; if ( aPositions.Count() ) { - long* pData = new long[ aPositions.Count() ]; - memcpy( pData, aPositions.GetData(), aPositions.Count()*sizeof(*aPositions.GetData()) ); - pL->aPositions.InitData( pData, aPositions.Count() ); + pL->aPositions.Insert (aPositions.GetData(), aPositions.Count(), 0); } pL->nStartPosX = nStartPosX; pL->nStart = nStart; |