From cebc56dd967fe68990f9cb068b87e50ff47f5832 Mon Sep 17 00:00:00 2001 From: "henry.jia%sun.com" Date: Wed, 14 Aug 2002 05:06:09 +0000 Subject: [PATCH] fix of Patch for Bug 75081: nsCString::FindChar is stupid. Extremely stupid Patch by bratell@lysator.liu.se Fix by Henry.Jia@sun.com r=jag, sr=alecf git-svn-id: svn://10.0.0.236/trunk@127238 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/string/obsolete/nsStr.cpp | 4 ++-- mozilla/xpcom/string/obsolete/nsStr.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/mozilla/string/obsolete/nsStr.cpp b/mozilla/string/obsolete/nsStr.cpp index 44b176bc6d1..609e6bb57f3 100644 --- a/mozilla/string/obsolete/nsStr.cpp +++ b/mozilla/string/obsolete/nsStr.cpp @@ -468,7 +468,7 @@ void nsStrPrivate::Trim(nsStr& aDest,const char* aSet,PRBool aEliminateLeading,P if(aEliminateLeading) { while(++theIndex<=theMax) { - PRUnichar theChar=GetCharAt(aDest, theIndex); + PRUnichar theChar=::GetCharAt(aDest, theIndex); PRInt32 thePos=::FindChar1(aSet,theSetLen,0,theChar,PR_FALSE,theSetLen); if(kNotFound==thePos) break; @@ -489,7 +489,7 @@ void nsStrPrivate::Trim(nsStr& aDest,const char* aSet,PRBool aEliminateLeading,P theIndex=aDest.mLength; PRInt32 theNewLen=theIndex; while(--theIndex>=0) { - PRUnichar theChar=GetCharAt(aDest, theIndex); //read at end now... + PRUnichar theChar=::GetCharAt(aDest, theIndex); //read at end now... PRInt32 thePos=::FindChar1(aSet,theSetLen,0,theChar,PR_FALSE,theSetLen); if(kNotFound=0) { - PRUnichar theChar=GetCharAt(aDest, theIndex); //read at end now... + PRUnichar theChar=::GetCharAt(aDest, theIndex); //read at end now... PRInt32 thePos=::FindChar1(aSet,theSetLen,0,theChar,PR_FALSE,theSetLen); if(kNotFound