dbertoni 2003/04/23 09:35:26
Modified: c/samples/SimpleXPathAPI SimpleXPathAPI.cpp
Log:
Fixed casts for older compilers.
Revision Changes Path
1.12 +8 -0 xml-xalan/c/samples/SimpleXPathAPI/SimpleXPathAPI.cpp
Index: SimpleXPathAPI.cpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/samples/SimpleXPathAPI/SimpleXPathAPI.cpp,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- SimpleXPathAPI.cpp 13 Mar 2003 23:53:38 -0000 1.11
+++ SimpleXPathAPI.cpp 23 Apr 2003 16:35:26 -0000 1.12
@@ -49,13 +49,21 @@
}
else if (node->getNodeType() == XalanNode::ELEMENT_NODE)
{
+#if defined(XALAN_OLD_STYLE_CASTS)
+ return (const XalanElement*)node;
+#else
return static_cast<const XalanElement*>(node);
+#endif
}
else if (node->getNodeType() == XalanNode::DOCUMENT_NODE)
{
XALAN_USING_XALAN(XalanDocument)
+#if defined(XALAN_OLD_STYLE_CASTS)
+ return ((const XalanDocument*)node)->getDocumentElement();
+#else
return static_cast<const
XalanDocument*>(node)->getDocumentElement();
+#endif
}
else
{
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]