amassari    2005/02/02 01:29:48

  Modified:    c/src/xercesc/util RefHash3KeysIdPool.c ValueHashTableOf.c
                        XMLString.cpp
  Log:
  Removed warnings
  
  Revision  Changes    Path
  1.18      +4 -4      xml-xerces/c/src/xercesc/util/RefHash3KeysIdPool.c
  
  Index: RefHash3KeysIdPool.c
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/xercesc/util/RefHash3KeysIdPool.c,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -r1.17 -r1.18
  --- RefHash3KeysIdPool.c      12 Jan 2005 20:06:55 -0000      1.17
  +++ RefHash3KeysIdPool.c      2 Feb 2005 09:29:48 -0000       1.18
  @@ -16,6 +16,9 @@
   
   /**
    * $Log$
  + * Revision 1.18  2005/02/02 09:29:48  amassari
  + * Removed warnings
  + *
    * Revision 1.17  2005/01/12 20:06:55  cargilld
    * Remove warning messages.
    *
  @@ -576,11 +579,8 @@
               return;
   
           // Else find the next non-empty bucket
  -        while (true)
  +        while (fToEnum->fBucketList[fCurHash]==0)
           {
  -            if (fToEnum->fBucketList[fCurHash])
  -                break;
  -
               // Bump to the next hash value. If we max out return
               fCurHash++;
               if (fCurHash == fToEnum->fHashModulus)
  
  
  
  1.12      +4 -4      xml-xerces/c/src/xercesc/util/ValueHashTableOf.c
  
  Index: ValueHashTableOf.c
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/xercesc/util/ValueHashTableOf.c,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- ValueHashTableOf.c        19 Nov 2004 00:50:22 -0000      1.11
  +++ ValueHashTableOf.c        2 Feb 2005 09:29:48 -0000       1.12
  @@ -16,6 +16,9 @@
   
   /**
    * $Log$
  + * Revision 1.12  2005/02/02 09:29:48  amassari
  + * Removed warnings
  + *
    * Revision 1.11  2004/11/19 00:50:22  cargilld
    * Memory improvement to utility classes from Christian Will.  Remove 
dependency on XMemory.
    *
  @@ -421,11 +424,8 @@
               return;
   
           // Else find the next non-empty bucket
  -        while (true)
  +        while (fToEnum->fBucketList[fCurHash]==0)
           {
  -            if (fToEnum->fBucketList[fCurHash])
  -                break;
  -
               // Bump to the next hash value. If we max out return
               fCurHash++;
               if (fCurHash == fToEnum->fHashModulus)
  
  
  
  1.42      +4 -6      xml-xerces/c/src/xercesc/util/XMLString.cpp
  
  Index: XMLString.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/xercesc/util/XMLString.cpp,v
  retrieving revision 1.41
  retrieving revision 1.42
  diff -u -r1.41 -r1.42
  --- XMLString.cpp     7 Jan 2005 15:12:10 -0000       1.41
  +++ XMLString.cpp     2 Feb 2005 09:29:48 -0000       1.42
  @@ -961,7 +961,7 @@
       const XMLCh* psz2 = str2;
   
       unsigned int curCount = 0;
  -    while (true)
  +    while (curCount < maxChars)
       {
           // If an inequality, then return difference
           if (*psz1 != *psz2)
  @@ -976,13 +976,11 @@
           psz2++;
   
           //
  -        //  Bump the count of chars done. If it equals the max then we are
  -        //  equal for the requested count, so break out and return equal.
  +        //  Bump the count of chars done. 
           //
           curCount++;
  -        if (curCount == maxChars)
  -            break;
       }
  +    // If we inspected all the maxChars, then we are equal.
       return 0;
   }
   
  
  
  

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

Reply via email to