Skip to content
Snippets Groups Projects
Commit 11f59ab3 authored by PeiYong Zhang's avatar PeiYong Zhang
Browse files

delete[] used.

git-svn-id: https://svn.apache.org/repos/asf/xerces/c/trunk@173800 13f79535-47bb-0310-9956-ffa450edef68
parent 6257e1c2
No related branches found
No related tags found
No related merge requests found
...@@ -57,6 +57,9 @@ ...@@ -57,6 +57,9 @@
/* /*
* $Id$ * $Id$
* $Log$ * $Log$
* Revision 1.5 2002/06/05 16:03:03 peiyongz
* delete[] used.
*
* Revision 1.4 2002/06/03 22:35:54 peiyongz * Revision 1.4 2002/06/03 22:35:54 peiyongz
* constants changed * constants changed
* *
...@@ -261,8 +264,8 @@ catch(TranscodingException const &e) \ ...@@ -261,8 +264,8 @@ catch(TranscodingException const &e) \
DOMWriterImpl::~DOMWriterImpl() DOMWriterImpl::~DOMWriterImpl()
{ {
delete fFeatures; delete fFeatures;
delete fEncoding; delete [] fEncoding;
delete fNewLine; delete [] fNewLine;
// we don't own/adopt error handler and filter // we don't own/adopt error handler and filter
} }
...@@ -374,7 +377,7 @@ bool DOMWriterImpl::getFeature(const XMLCh* const featName) const ...@@ -374,7 +377,7 @@ bool DOMWriterImpl::getFeature(const XMLCh* const featName) const
// we don't check the validity of the encoding set // we don't check the validity of the encoding set
void DOMWriterImpl::setEncoding(const XMLCh* const encoding) void DOMWriterImpl::setEncoding(const XMLCh* const encoding)
{ {
delete fEncoding; delete [] fEncoding;
fEncoding = XMLString::replicate(encoding); fEncoding = XMLString::replicate(encoding);
} }
...@@ -385,7 +388,7 @@ const XMLCh* DOMWriterImpl::getEncoding() const ...@@ -385,7 +388,7 @@ const XMLCh* DOMWriterImpl::getEncoding() const
void DOMWriterImpl::setNewLine(const XMLCh* const newLine) void DOMWriterImpl::setNewLine(const XMLCh* const newLine)
{ {
delete fNewLine; delete [] fNewLine;
fNewLine = XMLString::replicate(newLine); fNewLine = XMLString::replicate(newLine);
} }
......
...@@ -57,6 +57,9 @@ ...@@ -57,6 +57,9 @@
/* /*
* $Id$ * $Id$
* $Log$ * $Log$
* Revision 1.2 2002/06/05 16:03:03 peiyongz
* delete[] used.
*
* Revision 1.1 2002/05/28 22:39:39 peiyongz * Revision 1.1 2002/05/28 22:39:39 peiyongz
* DOM3 Save Interface: DOMWriter/DOMWriterFilter * DOM3 Save Interface: DOMWriter/DOMWriterFilter
* *
...@@ -377,6 +380,10 @@ private: ...@@ -377,6 +380,10 @@ private:
// the formatter used in WriteNode() // the formatter used in WriteNode()
// //
// fErrorCount // fErrorCount
// the count of error encountered in the serialization,
// which neither the error handler, nor the serializer itself,
// treat as fatal. And the serializer will return true/false
// based on this value.
// //
// ----------------------------------------------------------------------- // -----------------------------------------------------------------------
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment