You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by ca...@apache.org on 2006/03/17 22:33:13 UTC
svn commit: r386723 - in /xerces/c/trunk/src/xercesc/util: NameIdPool.c
RefHash3KeysIdPool.c
Author: cargilld
Date: Fri Mar 17 13:33:11 2006
New Revision: 386723
URL: http://svn.apache.org/viewcvs?rev=386723&view=rev
Log:
Quicker check if container is empty.
Modified:
xerces/c/trunk/src/xercesc/util/NameIdPool.c
xerces/c/trunk/src/xercesc/util/RefHash3KeysIdPool.c
Modified: xerces/c/trunk/src/xercesc/util/NameIdPool.c
URL: http://svn.apache.org/viewcvs/xerces/c/trunk/src/xercesc/util/NameIdPool.c?rev=386723&r1=386722&r2=386723&view=diff
==============================================================================
--- xerces/c/trunk/src/xercesc/util/NameIdPool.c (original)
+++ xerces/c/trunk/src/xercesc/util/NameIdPool.c Fri Mar 17 13:33:11 2006
@@ -118,6 +118,8 @@
template <class TElem> void NameIdPool<TElem>::removeAll()
{
+ if (fIdCounter == 0) return;
+
// Clean up the buckets first
for (unsigned int buckInd = 0; buckInd < fHashModulus; buckInd++)
{
Modified: xerces/c/trunk/src/xercesc/util/RefHash3KeysIdPool.c
URL: http://svn.apache.org/viewcvs/xerces/c/trunk/src/xercesc/util/RefHash3KeysIdPool.c?rev=386723&r1=386722&r2=386723&view=diff
==============================================================================
--- xerces/c/trunk/src/xercesc/util/RefHash3KeysIdPool.c (original)
+++ xerces/c/trunk/src/xercesc/util/RefHash3KeysIdPool.c Fri Mar 17 13:33:11 2006
@@ -181,6 +181,8 @@
template <class TVal> void RefHash3KeysIdPool<TVal>::removeAll()
{
+ if (fIdCounter == 0) return;
+
// Clean up the buckets first
for (unsigned int buckInd = 0; buckInd < fHashModulus; buckInd++)
{
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xerces.apache.org
For additional commands, e-mail: commits-help@xerces.apache.org