dbertoni    2004/02/05 17:44:46

  Modified:    c/src/xalanc/XPath MutableNodeRefList.cpp
  Log:
  Changed define for vector member function and add call to clear the target 
vector before copying nodes.
  
  Revision  Changes    Path
  1.4       +2 -1      xml-xalan/c/src/xalanc/XPath/MutableNodeRefList.cpp
  
  Index: MutableNodeRefList.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/src/xalanc/XPath/MutableNodeRefList.cpp,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- MutableNodeRefList.cpp    6 Jan 2004 02:41:32 -0000       1.3
  +++ MutableNodeRefList.cpp    6 Feb 2004 01:44:46 -0000       1.4
  @@ -742,9 +742,10 @@
        }
        else
        {
  -#if defined(XALAN_MODERN_STL)
  +#if defined(XALAN_STD_VECTOR_HAS_ITERATOR_ASSIGN)
                nodelist.m_nodeList.assign(m_nodeList.rbegin(), 
m_nodeList.rend());
   #else
  +        nodelist.clear();
                nodelist.reserve(m_nodeList.size());
   
                typedef NodeListVectorType::const_reverse_iterator      
const_reverse_iterator;
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to