sync with new nsString2 API
git-svn-id: svn://10.0.0.236/trunk@28426 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -515,7 +515,7 @@ nsresult CViewSourceHTML::WriteText(const nsString& aTextString,nsIContentSink&
|
||||
PRInt32 theOffset=0;
|
||||
|
||||
while(theOffset<theEnd){
|
||||
switch(aTextString[theOffset]){
|
||||
switch(aTextString.CharAt(theOffset)){
|
||||
case kCR: break;
|
||||
case kLF:
|
||||
{
|
||||
@@ -526,7 +526,7 @@ nsresult CViewSourceHTML::WriteText(const nsString& aTextString,nsIContentSink&
|
||||
temp="";
|
||||
break;
|
||||
case kSpace:
|
||||
if((PR_TRUE==aPreserveSpace) && (kSpace==aTextString[theOffset+1])) {
|
||||
if((PR_TRUE==aPreserveSpace) && (kSpace==aTextString.CharAt(theOffset+1))) {
|
||||
if(temp.Length())
|
||||
result=aSink.AddLeaf(theTextNode); //just dump the whole string...
|
||||
WriteNBSP(1,aSink);
|
||||
@@ -536,7 +536,7 @@ nsresult CViewSourceHTML::WriteText(const nsString& aTextString,nsIContentSink&
|
||||
//fall through...
|
||||
default:
|
||||
//scan ahead looking for valid chars...
|
||||
temp+=aTextString[theOffset];
|
||||
temp+=aTextString.CharAt(theOffset);
|
||||
break;
|
||||
}//switch...
|
||||
theOffset++;
|
||||
|
||||
Reference in New Issue
Block a user