From e308dac7a9d7414ecd4e2579fffd8168be0347e8 Mon Sep 17 00:00:00 2001 From: Jens-Heiner Rechtien Date: Fri, 2 Nov 2007 16:20:10 +0000 Subject: 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# --- autodoc/source/tools/tkpchars.cxx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'autodoc') 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; -- cgit