dbertoni    00/11/03 13:38:24

  Modified:    c/src/PlatformSupport ArenaAllocator.hpp
                        ReusableArenaAllocator.hpp
  Log:
  Fixed bug where data member was not being reset to 0.
  
  Revision  Changes    Path
  1.7       +1 -1      xml-xalan/c/src/PlatformSupport/ArenaAllocator.hpp
  
  Index: ArenaAllocator.hpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/src/PlatformSupport/ArenaAllocator.hpp,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- ArenaAllocator.hpp        2000/10/12 17:06:53     1.6
  +++ ArenaAllocator.hpp        2000/11/03 21:38:17     1.7
  @@ -174,7 +174,7 @@
                assert(m_blocks.back()->ownsObject(theObject) == true);
        }
   
  -     void
  +     virtual void
        reset()
        {
   #if !defined(XALAN_NO_NAMESPACES)
  
  
  
  1.10      +8 -0      
xml-xalan/c/src/PlatformSupport/ReusableArenaAllocator.hpp
  
  Index: ReusableArenaAllocator.hpp
  ===================================================================
  RCS file: 
/home/cvs/xml-xalan/c/src/PlatformSupport/ReusableArenaAllocator.hpp,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- ReusableArenaAllocator.hpp        2000/08/22 20:18:51     1.9
  +++ ReusableArenaAllocator.hpp        2000/11/03 21:38:18     1.10
  @@ -218,6 +218,14 @@
                assert(m_lastBlockReferenced->ownsObject(theObject) == true);
        }
   
  +     virtual void
  +     reset()
  +     {
  +             m_lastBlockReferenced = 0;
  +
  +             BaseClassType::reset();
  +     }
  +
        virtual bool
        ownsObject(const ObjectType*    theObject) const
        {
  
  
  

Reply via email to