You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by sb...@apache.org on 2001/06/24 03:20:24 UTC

cvs commit: xml-xalan/java/src/org/apache/xml/utils NodeVector.java

sboag       01/06/23 18:20:24

  Modified:    java/src/org/apache/xml/utils NodeVector.java
  Log:
  Added RemoveAllNoClear, method which resets
  the size of the vector to zero, but doesn't
  null out the items.
  
  Revision  Changes    Path
  1.5       +12 -0     xml-xalan/java/src/org/apache/xml/utils/NodeVector.java
  
  Index: NodeVector.java
  ===================================================================
  RCS file: /home/cvs/xml-xalan/java/src/org/apache/xml/utils/NodeVector.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- NodeVector.java	2001/06/12 19:15:59	1.4
  +++ NodeVector.java	2001/06/24 01:20:23	1.5
  @@ -473,6 +473,18 @@
   
       m_firstFree = 0;
     }
  +  
  +  /**
  +   * Set the length to zero, but don't clear the array.
  +   */
  +  public void RemoveAllNoClear()
  +  {
  +
  +    if (null == m_map)
  +      return;
  +
  +    m_firstFree = 0;
  +  }
   
     /**
      * Removes the first occurrence of the argument from this vector.
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org