dbertoni    2002/12/11 14:52:05

  Modified:    c/src/XSLT CountersTable.cpp
  Log:
  Resize table instead of pushing copy.
  
  Revision  Changes    Path
  1.7       +3 -1      xml-xalan/c/src/XSLT/CountersTable.cpp
  
  Index: CountersTable.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/src/XSLT/CountersTable.cpp,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- CountersTable.cpp 25 Nov 2002 18:11:52 -0000      1.6
  +++ CountersTable.cpp 11 Dec 2002 22:52:05 -0000      1.7
  @@ -164,9 +164,11 @@
   
                // If we got to this point, then we didn't find a counter, so 
make 
                // one and add it to the list.
  -             counters.push_back(Counter(&numberElem));
  +             counters.resize(counters.size() + 1);
   
                Counter&        counter = counters.back();
  +
  +             counter.m_numberElem = &numberElem;
   
                appendBtoFList(counter.m_countNodes, m_newFound);
   
  
  
  

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

Reply via email to