You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by tn...@apache.org on 2002/10/01 21:45:23 UTC
cvs commit: xml-xerces/c/src/xercesc/util XMLString.hpp
tng 2002/10/01 12:45:22
Modified: c/src/xercesc/util XMLString.hpp
Log:
Performance in XMLString::equals, only need to check one string for null as they are equal already.
Revision Changes Path
1.6 +4 -1 xml-xerces/c/src/xercesc/util/XMLString.hpp
Index: XMLString.hpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/src/xercesc/util/XMLString.hpp,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- XMLString.hpp 24 Sep 2002 19:41:21 -0000 1.5
+++ XMLString.hpp 1 Oct 2002 19:45:22 -0000 1.6
@@ -56,6 +56,9 @@
/*
* $Log$
+ * Revision 1.6 2002/10/01 19:45:22 tng
+ * Performance in XMLString::equals, only need to check one string for null as they are equal already.
+ *
* Revision 1.5 2002/09/24 19:41:21 tng
* New inline function equals that is modified from compareString but simply return true or false.
*
@@ -1468,7 +1471,7 @@
while (*psz1 == *psz2)
{
// If either has ended, then they both ended, so equal
- if (!*psz1 || !*psz2)
+ if (!*psz1)
return true;
// Move upwards for the next round
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org