peiyongz 2004/04/07 08:26:45 Modified: c/src/xercesc/dom/impl DOMErrorImpl.cpp DOMImplementationImpl.cpp DOMNodeImpl.cpp Log: code cleaning Revision Changes Path 1.10 +3 -2 xml-xerces/c/src/xercesc/dom/impl/DOMErrorImpl.cpp Index: DOMErrorImpl.cpp =================================================================== RCS file: /home/cvs/xml-xerces/c/src/xercesc/dom/impl/DOMErrorImpl.cpp,v retrieving revision 1.9 retrieving revision 1.10 diff -u -r1.9 -r1.10 --- DOMErrorImpl.cpp 1 Apr 2004 22:05:32 -0000 1.9 +++ DOMErrorImpl.cpp 7 Apr 2004 15:26:45 -0000 1.10 @@ -56,6 +56,9 @@ /* * $Log$ + * Revision 1.10 2004/04/07 15:26:45 peiyongz + * code cleaning + * * Revision 1.9 2004/04/01 22:05:32 peiyongz * invoke DOMException with Memory Manager * @@ -151,8 +154,6 @@ void DOMErrorImpl::setRelatedException(void*) const { throw DOMException(DOMException::NOT_SUPPORTED_ERR, 0); - //pending: if default value is 0 - //throw DOMException(DOMException::NOT_SUPPORTED_ERR, 0, XMLPlatformUtils::fgMemoryManager); } XERCES_CPP_NAMESPACE_END 1.24 +3 -7 xml-xerces/c/src/xercesc/dom/impl/DOMImplementationImpl.cpp Index: DOMImplementationImpl.cpp =================================================================== RCS file: /home/cvs/xml-xerces/c/src/xercesc/dom/impl/DOMImplementationImpl.cpp,v retrieving revision 1.23 retrieving revision 1.24 diff -u -r1.23 -r1.24 --- DOMImplementationImpl.cpp 1 Apr 2004 22:05:32 -0000 1.23 +++ DOMImplementationImpl.cpp 7 Apr 2004 15:26:45 -0000 1.24 @@ -240,8 +240,6 @@ // assume XML 1.0 since we do not know its version yet. if(!XMLChar1_0::isValidName(qualifiedName, XMLString::stringLen(qualifiedName))) throw DOMException(DOMException::INVALID_CHARACTER_ERR, 0); - //pending: if default value is 0 - //throw DOMException(DOMException::INVALID_CHARACTER_ERR, 0, XMLPlatformUtils::fgMemoryManager); //to do: do we need to create with user's memorymanager??? DOMDocumentTypeImpl* docType = new DOMDocumentTypeImpl(0, qualifiedName, publicId, systemId, true); @@ -259,8 +257,7 @@ //Introduced in DOM Level 3 DOMImplementation* DOMImplementationImpl::getInterface(const XMLCh*){ throw DOMException(DOMException::NOT_SUPPORTED_ERR, 0); - //pending: if default value is 0 - //throw DOMException(DOMException::NOT_SUPPORTED_ERR, 0, XMLPlatformUtils::fgMemoryManager); + return 0; } @@ -325,8 +322,7 @@ DOMInputSource* DOMImplementationImpl::createDOMInputSource() { throw DOMException(DOMException::NOT_SUPPORTED_ERR, 0); - //pending: if default value is 0 - //throw DOMException(DOMException::NOT_SUPPORTED_ERR, 0, XMLPlatformUtils::fgMemoryManager); + return 0; } 1.32 +1 -7 xml-xerces/c/src/xercesc/dom/impl/DOMNodeImpl.cpp Index: DOMNodeImpl.cpp =================================================================== RCS file: /home/cvs/xml-xerces/c/src/xercesc/dom/impl/DOMNodeImpl.cpp,v retrieving revision 1.31 retrieving revision 1.32 diff -u -r1.31 -r1.32 --- DOMNodeImpl.cpp 1 Apr 2004 22:05:32 -0000 1.31 +++ DOMNodeImpl.cpp 7 Apr 2004 15:26:45 -0000 1.32 @@ -391,18 +391,12 @@ if (XMLString::equals(namespaceURI, XMLUni::fgXMLURIName)) return XMLUni::fgXMLURIName; throw DOMException(DOMException::NAMESPACE_ERR, 0); - //pending: if default value is 0 - //throw DOMException(DOMException::NAMESPACE_ERR, 0, XMLPlatformUtils::fgMemoryManager); } else if (nType == DOMNode::ATTRIBUTE_NODE && XMLString::equals(prefix, XMLUni::fgXMLNSString)) { if (XMLString::equals(namespaceURI, XMLUni::fgXMLNSURIName)) return XMLUni::fgXMLNSURIName; throw DOMException(DOMException::NAMESPACE_ERR, 0); - //pending: if default value is 0 - //throw DOMException(DOMException::NAMESPACE_ERR, 0, XMLPlatformUtils::fgMemoryManager); } else if (namespaceURI == 0 || *namespaceURI == 0) { throw DOMException(DOMException::NAMESPACE_ERR, 0); - //pending: if default value is 0 - //throw DOMException(DOMException::NAMESPACE_ERR, 0, XMLPlatformUtils::fgMemoryManager); } else return namespaceURI; return namespaceURI;
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]