You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by tn...@apache.org on 2001/08/07 19:01:10 UTC
cvs commit: xml-xerces/c/src/idom IDDeepNodeListImpl.cpp
tng 01/08/07 10:01:10
Modified: c/src/idom IDDeepNodeListImpl.cpp
Log:
[Bug 2676] IDOM: pure virtual called in IDDeepNodeListImpl::item() .
Revision Changes Path
1.5 +5 -4 xml-xerces/c/src/idom/IDDeepNodeListImpl.cpp
Index: IDDeepNodeListImpl.cpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/src/idom/IDDeepNodeListImpl.cpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- IDDeepNodeListImpl.cpp 2001/06/04 20:11:52 1.4
+++ IDDeepNodeListImpl.cpp 2001/08/07 17:01:09 1.5
@@ -56,6 +56,9 @@
/*
* $Log: IDDeepNodeListImpl.cpp,v $
+ * Revision 1.5 2001/08/07 17:01:09 tng
+ * [Bug 2676] IDOM: pure virtual called in IDDeepNodeListImpl::item() .
+ *
* Revision 1.4 2001/06/04 20:11:52 tng
* IDOM: Complete IDNodeIterator, IDTreeWalker, IDNodeFilter.
*
@@ -208,14 +211,12 @@
unsigned int currentIndexPlus1 = fCurrentIndexPlus1;
IDOM_Node *currentNode = fCurrentNode;
-// idom_revisit ???? If we know that fRootNode must be an IDDocumentImpl *,
-// perhaps we should make it so in getDeepNodeList ????
- if (((IDDocumentImpl *)fRootNode)->changes() != fChanges)
+ if (castToParentImpl(fRootNode)->changes() != fChanges)
{
// Tree changed. Do it all from scratch!
currentIndexPlus1 = 0;
currentNode = (IDOM_Node *)fRootNode;
- fChanges = ((IDDocumentImpl *)fRootNode)->changes();
+ fChanges = castToParentImpl(fRootNode)->changes();
}
else if (currentIndexPlus1 > index+1)
{
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org