diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2007-11-02 16:20:10 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2007-11-02 16:20:10 +0000 |
commit | e308dac7a9d7414ecd4e2579fffd8168be0347e8 (patch) | |
tree | a590265c15f372e65719eb29aa3ff148438f06c1 /autodoc | |
parent | 422d3e0c2ab944c9c857101ae2e4e3eb5a0218f1 (diff) |
INTEGRATION: CWS adc18 (1.8.2); FILE MERGED
2007/10/19 10:37:32 np 1.8.2.2: #i81775#
2007/10/17 09:18:14 np 1.8.2.1: #i79026#
Diffstat (limited to 'autodoc')
-rw-r--r-- | autodoc/source/tools/tkpchars.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/autodoc/source/tools/tkpchars.cxx b/autodoc/source/tools/tkpchars.cxx index 3060f8b12857..3e9d63a3c5da 100644 --- a/autodoc/source/tools/tkpchars.cxx +++ b/autodoc/source/tools/tkpchars.cxx @@ -4,9 +4,9 @@ * * $RCSfile: tkpchars.cxx,v $ * - * $Revision: 1.8 $ + * $Revision: 1.9 $ * - * last change: $Author: vg $ $Date: 2007-09-18 14:29:01 $ + * last change: $Author: hr $ $Date: 2007-11-02 17:20:10 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -63,7 +63,7 @@ void CharacterSource::LoadText(csv::bstream & io_rSource) { if (dpSource != 0) - delete dpSource; + delete [] dpSource; io_rSource.seek(0, csv::end); nSourceSize = intt(io_rSource.position()); @@ -84,7 +84,7 @@ void CharacterSource::LoadText( const char * i_sSourceText ) { if (dpSource != 0) - delete dpSource; + delete [] dpSource; nSourceSize = strlen(i_sSourceText); @@ -94,7 +94,7 @@ CharacterSource::LoadText( const char * i_sSourceText ) BeginSource(); } -/// KORR: So far, this works only when tokens do not cross inserted text boundaries. +/// KORR_FUTURE: So far, this works only when tokens do not cross inserted text boundaries. void CharacterSource::InsertTextAtCurPos( const char * i_sText2Insert ) { @@ -138,14 +138,14 @@ CharacterSource::BeginSource() dpSource[nLastCut] = NULCH; } -/// KORR: So far, this works only when tokens do not cross inserted text boundaries. +// KORR_FUTURE: So far, this works only when tokens do not cross inserted text boundaries. char CharacterSource::MoveOn_OverStack() { while ( aSourcesStack.size() > 0 AND nCurPos >= nSourceSize-1 ) { S_SourceState & aState = aSourcesStack.top(); - delete dpSource; + delete [] dpSource; dpSource = aState.dpSource; nSourceSize = aState.nSourceSize; |