diff --git a/src/xercesc/dom/impl/DOMErrorImpl.cpp b/src/xercesc/dom/impl/DOMErrorImpl.cpp index 697d9c82d7d01fef66d2372d2fc373f65cda0cee..48d9616ec800ee9e67714448cc56542da1890379 100644 --- a/src/xercesc/dom/impl/DOMErrorImpl.cpp +++ b/src/xercesc/dom/impl/DOMErrorImpl.cpp @@ -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::setLocation(DOMLocator* const location) 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 diff --git a/src/xercesc/dom/impl/DOMImplementationImpl.cpp b/src/xercesc/dom/impl/DOMImplementationImpl.cpp index e59e54ee56734a3ce19f2b2c0630d5f81b559aac..b842a881a0662b2a1023aa3f4c642d52c9aa8694 100644 --- a/src/xercesc/dom/impl/DOMImplementationImpl.cpp +++ b/src/xercesc/dom/impl/DOMImplementationImpl.cpp @@ -240,8 +240,6 @@ DOMDocumentType *DOMImplementationImpl::createDocumentType(const XMLCh *qualifie // 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 @@ DOMDocument *DOMImplementationImpl::createDocument(const XMLCh *namespaceURI, //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 @@ DOMWriter* DOMImplementationImpl::createDOMWriter(MemoryManager* const manager) 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; } diff --git a/src/xercesc/dom/impl/DOMNodeImpl.cpp b/src/xercesc/dom/impl/DOMNodeImpl.cpp index f661f4514a85d7de7c6f8eceb00056398d770c6f..b3cdb0a846c3b47de5afafd6bcda6d43ebffc5cc 100644 --- a/src/xercesc/dom/impl/DOMNodeImpl.cpp +++ b/src/xercesc/dom/impl/DOMNodeImpl.cpp @@ -391,18 +391,12 @@ const XMLCh* DOMNodeImpl::mapPrefix(const XMLCh *prefix, 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;