fixed bug in IsOrdered that was found on the web
git-svn-id: svn://10.0.0.236/trunk@13494 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -159,7 +159,7 @@ PRBool nsString::IsOrdered(void) const {
|
||||
if(mLength>1) {
|
||||
PRInt32 theIndex;
|
||||
for(theIndex=1;theIndex<mLength;theIndex++) {
|
||||
if(mStr[theIndex-1]>=mStr[theIndex]) {
|
||||
if(mStr[theIndex-1]>mStr[theIndex]) {
|
||||
result=PR_FALSE;
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -159,7 +159,7 @@ PRBool nsString::IsOrdered(void) const {
|
||||
if(mLength>1) {
|
||||
PRInt32 theIndex;
|
||||
for(theIndex=1;theIndex<mLength;theIndex++) {
|
||||
if(mStr[theIndex-1]>=mStr[theIndex]) {
|
||||
if(mStr[theIndex-1]>mStr[theIndex]) {
|
||||
result=PR_FALSE;
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -159,7 +159,7 @@ PRBool nsString::IsOrdered(void) const {
|
||||
if(mLength>1) {
|
||||
PRInt32 theIndex;
|
||||
for(theIndex=1;theIndex<mLength;theIndex++) {
|
||||
if(mStr[theIndex-1]>=mStr[theIndex]) {
|
||||
if(mStr[theIndex-1]>mStr[theIndex]) {
|
||||
result=PR_FALSE;
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -159,7 +159,7 @@ PRBool nsString::IsOrdered(void) const {
|
||||
if(mLength>1) {
|
||||
PRInt32 theIndex;
|
||||
for(theIndex=1;theIndex<mLength;theIndex++) {
|
||||
if(mStr[theIndex-1]>=mStr[theIndex]) {
|
||||
if(mStr[theIndex-1]>mStr[theIndex]) {
|
||||
result=PR_FALSE;
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user