I'll have to figure out sometime why mac/win don't like assigning an nsAReadableString into a (static?) nsString... hope this fixes the bustage.

This commit is contained in:
disttsc%bart.nl 2001-03-27 12:12:16 +00:00
Родитель ac1cbced14
Коммит f29e56dd45
2 изменённых файлов: 8 добавлений и 8 удалений

Просмотреть файл

@ -527,7 +527,7 @@ PRInt32 CTextToken::GetTextLength(void) {
* @return error result
*/
nsresult CTextToken::Consume(PRUnichar aChar, nsScanner& aScanner,PRInt32 aMode) {;
static nsString theTerminals = NS_LITERAL_STRING("\n\r&<");
static nsString theTerminals(NS_LITERAL_STRING("\n\r&<"));
nsresult result=NS_OK;
PRBool done=PR_FALSE;
nsReadingIterator<PRUnichar> origin, start, end;
@ -897,7 +897,7 @@ PRInt32 CMarkupDeclToken::GetTokenType(void) {
* @return error result
*/
nsresult CMarkupDeclToken::Consume(PRUnichar aChar, nsScanner& aScanner,PRInt32 aMode) {
static nsString theTerminals = NS_LITERAL_STRING("\n\r'\">");
static nsString theTerminals(NS_LITERAL_STRING("\n\r'\">"));
nsresult result=NS_OK;
PRBool done=PR_FALSE;
PRUnichar quote=0;
@ -1521,7 +1521,7 @@ nsresult ConsumeQuotedString(PRUnichar aChar,nsString& aString,nsScanner& aScann
*/
static
nsresult ConsumeAttributeValueText(PRUnichar,nsString& aString,nsScanner& aScanner){
static nsString theTerminals = NS_LITERAL_STRING("\b\t\n\r >");
static nsString theTerminals(NS_LITERAL_STRING("\b\t\n\r >"));
nsresult result=aScanner.ReadUntil(aString,theTerminals,PR_FALSE);
//Let's force quotes if either the first or last char is quoted.
@ -1570,7 +1570,7 @@ nsresult CAttributeToken::Consume(PRUnichar aChar, nsScanner& aScanner,PRInt32 a
}
else {
//If you're here, handle an unquoted key.
static nsAutoString theTerminals = NS_LITERAL_STRING("\b\t\n\r \"=>");
static nsAutoString theTerminals(NS_LITERAL_STRING("\b\t\n\r \"=>"));
result=aScanner.ReadUntil(start,end,theTerminals,PR_FALSE);
}
if (!aRetainWhitespace) {

Просмотреть файл

@ -527,7 +527,7 @@ PRInt32 CTextToken::GetTextLength(void) {
* @return error result
*/
nsresult CTextToken::Consume(PRUnichar aChar, nsScanner& aScanner,PRInt32 aMode) {;
static nsString theTerminals = NS_LITERAL_STRING("\n\r&<");
static nsString theTerminals(NS_LITERAL_STRING("\n\r&<"));
nsresult result=NS_OK;
PRBool done=PR_FALSE;
nsReadingIterator<PRUnichar> origin, start, end;
@ -897,7 +897,7 @@ PRInt32 CMarkupDeclToken::GetTokenType(void) {
* @return error result
*/
nsresult CMarkupDeclToken::Consume(PRUnichar aChar, nsScanner& aScanner,PRInt32 aMode) {
static nsString theTerminals = NS_LITERAL_STRING("\n\r'\">");
static nsString theTerminals(NS_LITERAL_STRING("\n\r'\">"));
nsresult result=NS_OK;
PRBool done=PR_FALSE;
PRUnichar quote=0;
@ -1521,7 +1521,7 @@ nsresult ConsumeQuotedString(PRUnichar aChar,nsString& aString,nsScanner& aScann
*/
static
nsresult ConsumeAttributeValueText(PRUnichar,nsString& aString,nsScanner& aScanner){
static nsString theTerminals = NS_LITERAL_STRING("\b\t\n\r >");
static nsString theTerminals(NS_LITERAL_STRING("\b\t\n\r >"));
nsresult result=aScanner.ReadUntil(aString,theTerminals,PR_FALSE);
//Let's force quotes if either the first or last char is quoted.
@ -1570,7 +1570,7 @@ nsresult CAttributeToken::Consume(PRUnichar aChar, nsScanner& aScanner,PRInt32 a
}
else {
//If you're here, handle an unquoted key.
static nsAutoString theTerminals = NS_LITERAL_STRING("\b\t\n\r \"=>");
static nsAutoString theTerminals(NS_LITERAL_STRING("\b\t\n\r \"=>"));
result=aScanner.ReadUntil(start,end,theTerminals,PR_FALSE);
}
if (!aRetainWhitespace) {