You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by db...@locus.apache.org on 2000/12/15 02:11:15 UTC
cvs commit: xml-xalan/c/src/PlatformSupport XalanDOMStringPool.cpp
dbertoni 00/12/14 17:11:14
Modified: c/src/PlatformSupport XalanDOMStringPool.cpp
Log:
Removed bogus assert.
Revision Changes Path
1.5 +5 -4 xml-xalan/c/src/PlatformSupport/XalanDOMStringPool.cpp
Index: XalanDOMStringPool.cpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/PlatformSupport/XalanDOMStringPool.cpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- XalanDOMStringPool.cpp 2000/12/07 16:39:26 1.4
+++ XalanDOMStringPool.cpp 2000/12/15 01:11:14 1.5
@@ -83,11 +83,14 @@
while(i < m_length)
{
- if (m_string[i] < theRHS.m_string[i])
+ const XalanDOMChar theLHSChar = m_string[i];
+ const XalanDOMChar theRHSChar = theRHS.m_string[i];
+
+ if (theLHSChar < theRHSChar)
{
return true;
}
- else if (m_string[i] > theRHS.m_string[i])
+ else if (theLHSChar > theRHSChar)
{
return false;
}
@@ -96,8 +99,6 @@
++i;
}
}
-
- assert(i == m_length && m_string[i] == 0 && theRHS.m_string[i] == 0);
// They're equal, so return false...
return false;