зеркало из https://github.com/mozilla/gecko-dev.git
A little tweaking to my previous checkin.
Checking for NS_OK.
This commit is contained in:
Родитель
34029142f9
Коммит
00da345e21
|
@ -549,8 +549,10 @@ nsresult CTextToken::ConsumeUntil(PRUnichar aChar,PRBool aIgnoreComments,nsScann
|
|||
static nsAutoString theEndings("\n\"\'");
|
||||
temp += aChar;
|
||||
result=aScanner.ReadUntil(temp,theEndings,PR_TRUE,PR_FALSE);
|
||||
result=aScanner.GetChar(aChar);
|
||||
if(result==NS_OK) temp += aChar; // consume the character that stopped the scan
|
||||
if(result==NS_OK) {
|
||||
result=aScanner.GetChar(aChar);
|
||||
if(result==NS_OK) temp += aChar; // consume the character that stopped the scan
|
||||
}
|
||||
}
|
||||
else if(0<=theWhitespace2.BinarySearch(aChar)) {
|
||||
static CWhitespaceToken theWS;
|
||||
|
|
|
@ -549,8 +549,10 @@ nsresult CTextToken::ConsumeUntil(PRUnichar aChar,PRBool aIgnoreComments,nsScann
|
|||
static nsAutoString theEndings("\n\"\'");
|
||||
temp += aChar;
|
||||
result=aScanner.ReadUntil(temp,theEndings,PR_TRUE,PR_FALSE);
|
||||
result=aScanner.GetChar(aChar);
|
||||
if(result==NS_OK) temp += aChar; // consume the character that stopped the scan
|
||||
if(result==NS_OK) {
|
||||
result=aScanner.GetChar(aChar);
|
||||
if(result==NS_OK) temp += aChar; // consume the character that stopped the scan
|
||||
}
|
||||
}
|
||||
else if(0<=theWhitespace2.BinarySearch(aChar)) {
|
||||
static CWhitespaceToken theWS;
|
||||
|
|
Загрузка…
Ссылка в новой задаче