You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by kn...@apache.org on 2002/07/19 16:58:29 UTC
cvs commit: xml-xerces/c/src/xercesc/parsers DOMBuilderImpl.cpp
knoaman 2002/07/19 07:58:29
Modified: c/src/xercesc/parsers DOMBuilderImpl.cpp
Log:
Use the adopt flag parameter instead of the setter method.
Revision Changes Path
1.12 +3 -5 xml-xerces/c/src/xercesc/parsers/DOMBuilderImpl.cpp
Index: DOMBuilderImpl.cpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/src/xercesc/parsers/DOMBuilderImpl.cpp,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- DOMBuilderImpl.cpp 15 Jul 2002 18:25:24 -0000 1.11
+++ DOMBuilderImpl.cpp 19 Jul 2002 14:58:29 -0000 1.12
@@ -392,9 +392,8 @@
// ---------------------------------------------------------------------------
DOMDocument* DOMBuilderImpl::parse(const DOMInputSource& source)
{
- Wrapper4DOMInputSource isWrapper((DOMInputSource*) &source);
+ Wrapper4DOMInputSource isWrapper((DOMInputSource*) &source, false);
- isWrapper.setAdoptInputSource(false);
AbstractDOMParser::parse(isWrapper);
return getDocument();
}
@@ -551,9 +550,8 @@
Grammar* grammar = 0;
try
{
- Wrapper4DOMInputSource isWrapper((DOMInputSource*) &source);
+ Wrapper4DOMInputSource isWrapper((DOMInputSource*) &source, false);
- isWrapper.setAdoptInputSource(false);
setParseInProgress(true);
grammar = getScanner()->loadGrammar(isWrapper, grammarType, toCache);
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org