зеркало из https://github.com/mozilla/pjs.git
Attempt to get old gcc and old FreeBSD compilers working again. Will ask scc to look for a better fix later.
This commit is contained in:
Родитель
98b8979fc6
Коммит
01dd43399d
|
@ -375,12 +375,23 @@ nsXIFConverter::AppendEntity(const PRUnichar aChar, nsAWritableString* aStr,
|
||||||
|
|
||||||
// Can't call AddAttribute directly -- it does entityizing
|
// Can't call AddAttribute directly -- it does entityizing
|
||||||
// and will call us back. So just do what it does:
|
// and will call us back. So just do what it does:
|
||||||
mBuffer->Append(mSpace + mValue + mEqual + mQuote + *str + mQuote);
|
|
||||||
|
// ugly workaround for older compilers not understanding operator+
|
||||||
|
nsAReadableString *space = &mSpace;
|
||||||
|
nsAReadableString *value = &mValue;
|
||||||
|
nsAReadableString *equal = &mEqual;
|
||||||
|
nsAReadableString *quote = &mQuote;
|
||||||
|
mBuffer->Append(*space + *value + *equal + *quote + *str + *quote);
|
||||||
FinishStartTag(mEntity, PR_TRUE, PR_FALSE);
|
FinishStartTag(mEntity, PR_TRUE, PR_FALSE);
|
||||||
}
|
}
|
||||||
else if (aStr)
|
else if (aStr)
|
||||||
{
|
{
|
||||||
aStr->Append(NS_LITERAL_STRING("&") + *str + NS_LITERAL_STRING(";"));
|
// ugly workaround for older compilers not understanding operator+
|
||||||
|
NS_NAMED_LITERAL_STRING(ampersand, "&");
|
||||||
|
NS_NAMED_LITERAL_STRING(semicolon, ";");
|
||||||
|
nsAReadableString *ptrAmp = &ersand;
|
||||||
|
nsAReadableString *ptrSemi = &semicolon;
|
||||||
|
aStr->Append(*ptrAmp + *str + *ptrSemi);
|
||||||
}
|
}
|
||||||
return NS_OK;
|
return NS_OK;
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче