dbertoni    2002/07/22 15:25:01

  Modified:    c/src/Include XalanObjectCache.hpp
  Log:
  Use empty() instead of size() != 0.
  
  Revision  Changes    Path
  1.6       +3 -3      xml-xalan/c/src/Include/XalanObjectCache.hpp
  
  Index: XalanObjectCache.hpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/src/Include/XalanObjectCache.hpp,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- XalanObjectCache.hpp      30 Oct 2001 03:57:06 -0000      1.5
  +++ XalanObjectCache.hpp      22 Jul 2002 22:25:01 -0000      1.6
  @@ -164,7 +164,7 @@
        {
                // We'll always return the back of the free list, since
                // that's the cheapest thing.
  -             if (m_availableList.size() == 0)
  +             if (m_availableList.empty() == true)
                {
                        ObjectType* const       theNewObject = 
m_createFunctor();
   
  @@ -218,7 +218,7 @@
        void
        reset()
        {
  -             while (m_busyList.size() != 0)
  +             while (m_busyList.empty() == false)
                {
                        ObjectType* const       theInstance = m_busyList.back();
   
  @@ -307,7 +307,7 @@
        {
                // We'll always return the back of the free list, since
                // that's the cheapest thing.
  -             if (m_availableList.size() == 0)
  +             if (m_availableList.empty() == true)
                {
                        return m_createFunctor();
                }
  
  
  

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

Reply via email to