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...@apache.org on 2001/04/25 00:27:52 UTC
cvs commit: xml-xalan/c/src/PlatformSupport DOMStringHelper.cpp
dbertoni 01/04/24 15:27:52
Modified: c/src/PlatformSupport DOMStringHelper.cpp
Log:
Fixed some assertions.
Revision Changes Path
1.55 +6 -8 xml-xalan/c/src/PlatformSupport/DOMStringHelper.cpp
Index: DOMStringHelper.cpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/PlatformSupport/DOMStringHelper.cpp,v
retrieving revision 1.54
retrieving revision 1.55
diff -u -r1.54 -r1.55
--- DOMStringHelper.cpp 2001/04/11 02:14:07 1.54
+++ DOMStringHelper.cpp 2001/04/24 22:27:51 1.55
@@ -310,10 +310,8 @@
bool fResult = false;
const unsigned int theStringLength = length(theString);
- assert(theStringLength >= 0);
const unsigned int theSubstringLength = length(theSubstring);
- assert(theSubstringLength >= 0);
if (theSubstringLength == 0)
{
@@ -498,9 +496,9 @@
const unsigned int theStringLength = length(theString);
- // $$$ ToDo: In Java-land, any failing of these
- // assertions would result in an exception being thrown.
- assert(theStartIndex <= theStringLength && theStartIndex >= 0);
+ // $$$ ToDo: In Java-land, any failing of this
+ // assertion would result in an exception being thrown.
+ assert(theStartIndex <= theStringLength);
if (theStartIndex == theStringLength)
{
@@ -566,9 +564,9 @@
{
const unsigned int theStringLength = length(theString);
- // $$$ ToDo: In Java-land, any failing of these
- // assertions would result in an exception being thrown.
- assert(theStartIndex <= theStringLength && theStartIndex >= 0);
+ // $$$ ToDo: In Java-land, any failing of this
+ // assertion would result in an exception being thrown.
+ assert(theStartIndex <= theStringLength);
if (theStartIndex == theStringLength)
{
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org