dbertoni 2002/10/11 16:05:45
Modified: c/src/XercesParserLiaison XercesDocumentWrapper.cpp
Log:
Added #ifdef for older compilers.
Revision Changes Path
1.3 +4 -0
xml-xalan/c/src/XercesParserLiaison/XercesDocumentWrapper.cpp
Index: XercesDocumentWrapper.cpp
===================================================================
RCS file:
/home/cvs/xml-xalan/c/src/XercesParserLiaison/XercesDocumentWrapper.cpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- XercesDocumentWrapper.cpp 3 Oct 2002 05:53:52 -0000 1.2
+++ XercesDocumentWrapper.cpp 11 Oct 2002 23:05:44 -0000 1.3
@@ -174,7 +174,11 @@
{
if (theXercesNode != m_xercesDocument &&
theXercesNode->getOwnerDocument() !=
m_xercesDocument &&
+#if defined(XALAN_OLD_STYLE_CASTS)
+ theXercesNode->getParentNode() != (const
DOMNode*)m_xercesDocument)
+#else
theXercesNode->getParentNode() !=
static_cast<const DOMNode*>(m_xercesDocument))
+#endif
{
throw
XercesDOMWrapperException(XercesDOMWrapperException::WRONG_DOCUMENT_ERR);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]