You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by db...@apache.org on 2002/09/26 06:05:16 UTC
cvs commit: xml-xalan/c/src/XPath MutableNodeRefList.cpp MutableNodeRefList.hpp
dbertoni 2002/09/25 21:05:16
Modified: c/src/XPath MutableNodeRefList.cpp MutableNodeRefList.hpp
Log:
Fix document order problems.
Revision Changes Path
1.24 +6 -1 xml-xalan/c/src/XPath/MutableNodeRefList.cpp
Index: MutableNodeRefList.cpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/XPath/MutableNodeRefList.cpp,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -r1.23 -r1.24
--- MutableNodeRefList.cpp 27 Jun 2002 05:44:44 -0000 1.23
+++ MutableNodeRefList.cpp 26 Sep 2002 04:05:16 -0000 1.24
@@ -230,7 +230,7 @@
{
m_nodeList.clear();
- m_order = eDocumentOrder;
+ m_order = eUnknownOrder;
}
@@ -694,6 +694,11 @@
m_nodeList.end(),
NodeListVectorType::value_type(0)),
m_nodeList.end());
+
+ if (m_nodeList.empty() == true)
+ {
+ m_order = eUnknownOrder;
+ }
assert(checkForDuplicates() == false);
}
1.18 +6 -0 xml-xalan/c/src/XPath/MutableNodeRefList.hpp
Index: MutableNodeRefList.hpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/XPath/MutableNodeRefList.hpp,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- MutableNodeRefList.hpp 27 Jun 2002 05:44:44 -0000 1.17
+++ MutableNodeRefList.hpp 26 Sep 2002 04:05:16 -0000 1.18
@@ -281,6 +281,12 @@
return m_order == eUnknownOrder ? true : false;
}
+ void
+ setUnknownOrder()
+ {
+ m_order = eUnknownOrder;
+ }
+
/**
* See if the order of the nodes is document order.
*/
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org