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 2003/08/07 17:49:08 UTC

cvs commit: xml-xalan/c/src/xalanc/XSLT StylesheetConstructionContextDefault.cpp

dbertoni    2003/08/07 08:49:08

  Modified:    c/src/xalanc/XSLT StylesheetConstructionContextDefault.cpp
  Log:
  Reserve space in vector instead of resizing it.
  
  Revision  Changes    Path
  1.2       +1 -1      xml-xalan/c/src/xalanc/XSLT/StylesheetConstructionContextDefault.cpp
  
  Index: StylesheetConstructionContextDefault.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/src/xalanc/XSLT/StylesheetConstructionContextDefault.cpp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- StylesheetConstructionContextDefault.cpp	29 Jun 2003 03:58:08 -0000	1.1
  +++ StylesheetConstructionContextDefault.cpp	7 Aug 2003 15:49:08 -0000	1.2
  @@ -375,7 +375,7 @@
   StylesheetRoot*
   StylesheetConstructionContextDefault::create(const XalanDOMString&	theBaseIdentifier)
   {
  -	m_stylesheets.resize(m_stylesheets.size() + 1);
  +	m_stylesheets.reserve(m_stylesheets.size() + 1);
   
   	StylesheetRoot* const	theStylesheetRoot =
   		new StylesheetRoot(theBaseIdentifier, *this);
  
  
  

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